mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +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.
|
* Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING.
|
||||||
*/
|
*/
|
||||||
tryReconnect() {
|
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.status = Constants.Status.RECONNECTING;
|
||||||
this.ws.close();
|
this.ws.close();
|
||||||
this.packetManager.handleQueue();
|
this.packetManager.handleQueue();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue