fix vcs test blinks

acknowledge that the Changes View refresh future might be canceled
+ cleanup
This commit is contained in:
peter
2017-03-13 08:57:47 +01:00
parent e699031403
commit 0d78517856
@@ -160,6 +160,7 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
ProjectManager.getInstance().addProjectManagerListener(project, new ProjectManagerListener() {
@Override
public void projectClosing(Project project) {
//noinspection TestOnlyProblems
waitEverythingDoneInTestMode();
}
});
@@ -1562,6 +1563,7 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
Future future = ourUpdateAlarm.get();
if (future != null) {
future.cancel(true);
ourUpdateAlarm.compareAndSet(future, null);
}
}
@@ -1582,7 +1584,7 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
catch (InterruptedException | ExecutionException e) {
LOG.error(e);
}
catch (TimeoutException ignore) {
catch (TimeoutException | CancellationException ignore) {
}
}
}