mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Webpack build for branch master: c5e2ea7458
This commit is contained in:
parent
65958440e9
commit
87cda7ca78
2 changed files with 7 additions and 3 deletions
|
|
@ -23677,7 +23677,11 @@ 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 || this.status === Constants.Status.CONNECTING) return;
|
if (
|
||||||
|
this.status === Constants.Status.RECONNECTING ||
|
||||||
|
this.status === Constants.Status.CONNECTING ||
|
||||||
|
!this.client.token
|
||||||
|
) return;
|
||||||
this.status = Constants.Status.RECONNECTING;
|
this.status = Constants.Status.RECONNECTING;
|
||||||
this.ws.close();
|
this.ws.close();
|
||||||
this.packetManager.handleQueue();
|
this.packetManager.handleQueue();
|
||||||
|
|
|
||||||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue