EdgeDetector properly handles timeouts