aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js8
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) {