mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Whoops, compiled the changes this time :P
This commit is contained in:
@@ -139,7 +139,9 @@ var Client = (function () {
|
||||
if (err) {
|
||||
self.state = 4; //set state to disconnected
|
||||
self.trigger("disconnected");
|
||||
self.websocket.close();
|
||||
if (self.websocket) {
|
||||
self.websocket.close();
|
||||
}
|
||||
callback(err);
|
||||
reject(err);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user