test server end instead of destroy connection

This commit is contained in:
Chris Marsh 2017-07-18 09:48:06 -07:00
parent 0d0485444d
commit 7082a13d49

View file

@ -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();
}