mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
perform shutdown first: some tasks may be added after cancel but before shutdown
This commit is contained in:
@@ -65,8 +65,8 @@ public class Alarm implements Disposable {
|
||||
myExecutorService.shutdown();
|
||||
}
|
||||
else if (myThreadToUse == ThreadToUse.OWN_THREAD) {
|
||||
((ThreadPoolExecutor)myExecutorService).getQueue().clear();
|
||||
myExecutorService.shutdown();
|
||||
((ThreadPoolExecutor)myExecutorService).getQueue().clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user