From 250d1c2ea74ea2f416a5403265e47b4ca0d706e5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 24 Jun 2020 15:57:21 +0200 Subject: [PATCH] Remove disconnect() --- components/app.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/components/app.js b/components/app.js index c392023..060e19f 100644 --- a/components/app.js +++ b/components/app.js @@ -137,13 +137,6 @@ export default class App extends Component { this.switchBuffer(SERVER_BUFFER); } - disconnect() { - if (!this.client) { - return; - } - this.client.close(); - } - handleMessage(msg) { switch (msg.command) { case irc.RPL_WELCOME: @@ -275,7 +268,7 @@ export default class App extends Component { if (localStorage) { localStorage.removeItem("autoconnect"); } - this.disconnect(); + this.client.close(); break; case "close": var target = this.state.activeBuffer;