mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
fix reconnecting
This commit is contained in:
parent
b335824570
commit
1933451d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ class WebSocketManager extends EventEmitter {
|
|||
* Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING.
|
||||
*/
|
||||
tryReconnect() {
|
||||
if (this.status === Constants.Status.RECONNECTING) return;
|
||||
if (this.status === Constants.Status.RECONNECTING || this.status === Constants.Status.CONNECTING) return;
|
||||
this.status = Constants.Status.RECONNECTING;
|
||||
this.ws.close();
|
||||
this.packetManager.handleQueue();
|
||||
|
|
|
|||
Loading…
Reference in a new issue