add "task to execute on pooled thread is skipped because app is being disposed" for executeOnPooledThread

GitOrigin-RevId: 900ea2cc2082ab4ea5200e87388a0b8d82fcc344
This commit is contained in:
Vladimir Krivosheev
2019-09-13 19:28:41 +00:00
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();