Skip to content

Commit

Permalink
Actually clear connection queue when disconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Jul 17, 2017
1 parent 109ca4d commit 39733fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Client.js
Expand Up @@ -134,7 +134,6 @@ class Client extends EventEmitter {
this.bot = this.options.restMode ? this.token.startsWith("Bot ") : true;
this.startTime = 0;
this.lastConnect = 0;
this.connectQueue = [];
this.channelGuildMap = {};
this.shards = new ShardManager(this);
this.groupChannels = new Collection(GroupChannel);
Expand Down Expand Up @@ -220,7 +219,7 @@ class Client extends EventEmitter {
this.shards.forEach((shard) => {
shard.disconnect(options);
});
this.connectQueue = [];
this.shards.connectQueue = [];
}

/**
Expand Down

0 comments on commit 39733fc

Please sign in to comment.