mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 10:07:48 +00:00
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