mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't create semaphore — check early
This commit is contained in:
@@ -268,6 +268,10 @@ public class DumbServiceImpl extends DumbService {
|
||||
assert !application.isReadAccessAllowed();
|
||||
}
|
||||
|
||||
if (!isDumb()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Semaphore semaphore = new Semaphore();
|
||||
semaphore.down();
|
||||
runWhenSmart(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user