mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-30 03:07:37 +08:00
fix issue #1187: close shell when removing session
This commit is contained in:
parent
eb62e0dec2
commit
5c01dc4307
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user