Disconnect socket on error so it doesn't spam with retries

This commit is contained in:
Absurdon 2018-11-19 00:25:43 +01:00
parent 62bc539cd2
commit ea0ae11af6

View file

@ -42,7 +42,7 @@ const App = React.createClass({
} else if (error === "Gather Banned") {
this.setState({ status: "banned" });
} else {
console.dir(error);
socket.disconnect();
}
});
this.setState({ socket: socket });