test server end instead of destroy connection
This commit is contained in:
parent
0d0485444d
commit
7082a13d49
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue