external compiler: don't switch to non-incremental mode if searching for constant wasn't finished in 300ms

This commit is contained in:
nik
2012-08-24 16:55:45 +04:00
parent e210d64242
commit 616e758e39
@@ -74,7 +74,9 @@ public class BasicFuture<T> implements Future<T> {
}
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
waitFor(timeout, unit);
if (!waitFor(timeout, unit)) {
throw new TimeoutException();
}
return null;
}
}