forked from CringeStudios/gamja
Remove disconnect()
This commit is contained in:
parent
c1c9aa261e
commit
250d1c2ea7
@ -137,13 +137,6 @@ export default class App extends Component {
|
|||||||
this.switchBuffer(SERVER_BUFFER);
|
this.switchBuffer(SERVER_BUFFER);
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect() {
|
|
||||||
if (!this.client) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.client.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
handleMessage(msg) {
|
handleMessage(msg) {
|
||||||
switch (msg.command) {
|
switch (msg.command) {
|
||||||
case irc.RPL_WELCOME:
|
case irc.RPL_WELCOME:
|
||||||
@ -275,7 +268,7 @@ export default class App extends Component {
|
|||||||
if (localStorage) {
|
if (localStorage) {
|
||||||
localStorage.removeItem("autoconnect");
|
localStorage.removeItem("autoconnect");
|
||||||
}
|
}
|
||||||
this.disconnect();
|
this.client.close();
|
||||||
break;
|
break;
|
||||||
case "close":
|
case "close":
|
||||||
var target = this.state.activeBuffer;
|
var target = this.state.activeBuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user