don't create semaphore — check early

This commit is contained in:
Vladimir Krivosheev
2013-10-24 20:03:24 +02:00
parent d60d5e6a74
commit 0702c0eb96
@@ -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() {