mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add "task to execute on pooled thread is skipped because app is being disposed" for executeOnPooledThread
GitOrigin-RevId: 900ea2cc2082ab4ea5200e87388a0b8d82fcc344
This commit is contained in:
committed by
intellij-monorepo-bot
parent
08aa0aadc0
commit
0f6a755bbd
@@ -241,6 +241,11 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (isDisposedOrDisposeInProgress()) {
|
||||
LOG.debug("Task to execute on pooled thread is skipped because app is being disposed: " + this.getClass().getName());
|
||||
return;
|
||||
}
|
||||
|
||||
// see the comment in "executeOnPooledThread(Callable)"
|
||||
try (AccessToken ignored = myLock.applyReadPrivilege(suspensionId)) {
|
||||
action.run();
|
||||
|
||||
Reference in New Issue
Block a user