mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-158905 Invalid arguments : Already listening [timeout, port, localAddress]
This commit is contained in:
@@ -117,7 +117,7 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
private RemoteConnection myConnection;
|
||||
private JavaDebugProcess myXDebugProcess;
|
||||
|
||||
private Map<String, Connector.Argument> myArguments;
|
||||
private volatile Map<String, Connector.Argument> myArguments;
|
||||
|
||||
private final List<NodeRenderer> myRenderers = new ArrayList<>();
|
||||
|
||||
@@ -299,8 +299,6 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
}
|
||||
|
||||
private void stopConnecting() {
|
||||
DebuggerManagerThreadImpl.assertIsManagerThread();
|
||||
|
||||
Map<String, Connector.Argument> arguments = myArguments;
|
||||
try {
|
||||
if (arguments == null) {
|
||||
@@ -322,9 +320,6 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
catch (ExecutionException e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
finally {
|
||||
closeProcess(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1436,6 +1431,7 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
|
||||
@Override
|
||||
public void stop(boolean forceTerminate) {
|
||||
stopConnecting(); // does this first place in case debugger manager hanged accepting debugger connection (forever)
|
||||
getManagerThread().terminateAndInvoke(createStopCommand(forceTerminate), DebuggerManagerThreadImpl.COMMAND_TIMEOUT);
|
||||
}
|
||||
|
||||
@@ -1474,7 +1470,12 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
}
|
||||
}
|
||||
else {
|
||||
stopConnecting();
|
||||
try {
|
||||
stopConnecting();
|
||||
}
|
||||
finally {
|
||||
closeProcess(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user