mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix issue #1187: close shell when removing session
This commit is contained in:
@@ -19,7 +19,6 @@ import com.taobao.arthas.core.shell.system.impl.InternalCommandManager;
|
||||
import com.taobao.arthas.core.shell.system.impl.JobControllerImpl;
|
||||
import com.taobao.arthas.core.shell.term.Term;
|
||||
import com.taobao.arthas.core.shell.term.TermServer;
|
||||
import com.taobao.arthas.core.shell.term.impl.httptelnet.HttpTelnetTermServer;
|
||||
|
||||
import java.lang.instrument.Instrumentation;
|
||||
import java.util.ArrayList;
|
||||
@@ -184,6 +183,7 @@ public class ShellServerImpl extends ShellServer {
|
||||
|
||||
synchronized (ShellServerImpl.this) {
|
||||
sessions.remove(shell.id);
|
||||
shell.close("network error");
|
||||
completeSessionClosed = sessions.isEmpty() && closed;
|
||||
}
|
||||
if (completeSessionClosed) {
|
||||
|
||||
Reference in New Issue
Block a user