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];
|
const sock = global.connections[who];
|
||||||
if (sock) {
|
if (sock) {
|
||||||
console.log('killing', who);
|
console.log('killing', who);
|
||||||
sock.write(RpcMessage.sendClose(123, 'killed'));
|
sock.end(RpcMessage.sendClose(123, 'killed'));
|
||||||
sock.destroy();
|
|
||||||
}
|
}
|
||||||
this.displayPrompt();
|
this.displayPrompt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue