mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
-terminate automake session when project is disposed
-server side: cancel compile session when connection is closed
This commit is contained in:
@@ -673,6 +673,9 @@ public class CompileServerManager implements ApplicationComponent{
|
||||
|
||||
@Override
|
||||
public boolean handleBuildEvent(JpsRemoteProto.Message.Response.BuildEvent event) {
|
||||
if (myProject.isDisposed()) {
|
||||
return true;
|
||||
}
|
||||
switch (event.getEventType()) {
|
||||
case BUILD_COMPLETED:
|
||||
if (event.hasCompletionStatus()) {
|
||||
@@ -696,6 +699,9 @@ public class CompileServerManager implements ApplicationComponent{
|
||||
|
||||
@Override
|
||||
public void handleCompileMessage(JpsRemoteProto.Message.Response.CompileMessage compileResponse) {
|
||||
if (myProject.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
final JpsRemoteProto.Message.Response.CompileMessage.Kind kind = compileResponse.getKind();
|
||||
if (kind == JpsRemoteProto.Message.Response.CompileMessage.Kind.ERROR) {
|
||||
informWolf(myProject, compileResponse);
|
||||
|
||||
Reference in New Issue
Block a user