additional disposed checks

This commit is contained in:
Eugene Zhuravlev
2011-04-09 19:36:07 +02:00
parent f294593477
commit f30ae93906
@@ -198,7 +198,9 @@ public class DumbServiceImpl extends DumbService {
private void updateFinished() {
myDumb = false;
myPublisher.exitDumbMode();
if (!myProject.isDisposed()) {
myPublisher.exitDumbMode();
}
while (true) {
final Runnable runnable;
synchronized (myRunWhenSmartQueue) {
@@ -207,10 +209,9 @@ public class DumbServiceImpl extends DumbService {
}
runnable = myRunWhenSmartQueue.pullFirst();
}
if (myProject.isDisposed()) {
return;
if (!myProject.isDisposed()) {
runnable.run();
}
runnable.run();
}
}