test server end instead of destroy connection
This commit is contained in:
parent
0d0485444d
commit
7082a13d49
@ -52,8 +52,7 @@ replServer.defineCommand('kill', {
|
||||
const sock = global.connections[who];
|
||||
if (sock) {
|
||||
console.log('killing', who);
|
||||
sock.write(RpcMessage.sendClose(123, 'killed'));
|
||||
sock.destroy();
|
||||
sock.end(RpcMessage.sendClose(123, 'killed'));
|
||||
}
|
||||
this.displayPrompt();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user