mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] add assertion to ensure background log disposal
This commit is contained in:
@@ -182,6 +182,10 @@ public class VcsLogManager implements Disposable {
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
// since disposing log triggers flushing indexes on disk we do not want to do it in EDT
|
||||
// disposing of VcsLogManager is done by manually executing dispose(@Nullable Runnable callback)
|
||||
// the above method first disposes ui in EDT, than disposes everything else in background
|
||||
LOG.assertTrue(!ApplicationManager.getApplication().isDispatchThread());
|
||||
}
|
||||
|
||||
private class MyFatalErrorsHandler implements FatalErrorHandler {
|
||||
|
||||
Reference in New Issue
Block a user