EA-35490 - assert: LaterInvocator.getCurrentModalEntities (r: Dmitry Avdeev)

This commit is contained in:
Alexey Kudravtsev
2012-11-29 16:53:37 +04:00
parent 5bd3399746
commit 6cf0484bb5
@@ -510,7 +510,12 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx
myAlarm.cancelAllRequests();
boolean restart = toRestartAlarm && !myDisposed && myInitialized;
if (restart) {
myAlarm.addRequest(myUpdateRunnable, mySettings.AUTOREPARSE_DELAY);
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
myAlarm.addRequest(myUpdateRunnable, mySettings.AUTOREPARSE_DELAY);
}
});
}
}