diff --git a/webpack/lib/channel-controller.js b/webpack/lib/channel-controller.js index 4d6fb67..bbd326c 100644 --- a/webpack/lib/channel-controller.js +++ b/webpack/lib/channel-controller.js @@ -48,6 +48,7 @@ export default class ChannelController{ gs.get.room.fetch(); /* (6) Open channel websocket */ + ( window.csock != null ) && csock.close(); window.csock = new wscd(`wss://ws.douscord.xdrm.io/channel/${channel.id}`, { token: auth.token }); csock.bind(); csock.onreceive = (_dat) => {