mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
additional disposed checks
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user