mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
external compiler: don't switch to non-incremental mode if searching for constant wasn't finished in 300ms
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user