diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-07-26 13:15:11 +0200 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-07-26 13:15:11 +0200 |
| commit | 999d40256496dfe7beff3a8f422fa31f3fc3df92 (patch) | |
| tree | f1142dc7f1b7c0e632866acf19cfc0060e903354 /webAO/client.js | |
| parent | 205cd125db7240e9372b091b514f4d521491ccc6 (diff) | |
the connection was already dead
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webAO/client.js b/webAO/client.js index 9b53432..57b0d0c 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -431,11 +431,7 @@ class Client extends EventEmitter { } cleanup() { - try { - this.serv.close(1001); - } finally { - clearInterval(this.checkUpdater); - } + clearInterval(this.checkUpdater); } /** @@ -1620,7 +1616,7 @@ async function changeBackground(position) { * Triggered when the reconnect button is pushed. */ export function ReconnectButton() { - //client.cleanup(); + client.cleanup(); client = new Client(serverIP); console.log(client); if (client) { |
