external compiler thread (and project) leaks in tests fixed

This commit is contained in:
Alexey Kudravtsev
2015-11-18 14:11:03 +03:00
parent e51ed7af3b
commit fa073f5fba
2 changed files with 2 additions and 0 deletions
@@ -1318,6 +1318,7 @@ public class BuildManager implements Disposable {
public void stopListening() {
myChannelRegistrar.close();
myListenPort = -1;
}
private int startListening() throws Exception {
@@ -115,6 +115,7 @@ public class CompilerTestUtil {
ModuleRootModificationUtil.setModuleSdk(module, internalJdk);
}
BuildManager.getInstance().clearState(project);
BuildManager.getInstance().stopListening();
}
});
}