diff --git a/source/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java b/source/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java index 7af2edcbf15e..45f165670b75 100644 --- a/source/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java +++ b/source/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java @@ -535,8 +535,6 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx final boolean wasCanceled = myUpdateProgress.isCanceled(); final boolean wasRunning = myUpdateProgress.isRunning(); - myUpdateThreadSemaphore.up(); - ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { if (myDisposed) return; @@ -550,6 +548,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx } } }, ModalityState.stateForComponent(editor.getComponent())); + myUpdateThreadSemaphore.up(); } };