mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
voice: clear connect timeout after connected (fixes #2752)
This commit is contained in:
parent
9a95b6a1e8
commit
64832abfdb
1 changed files with 1 additions and 0 deletions
|
|
@ -420,6 +420,7 @@ class VoiceConnection extends EventEmitter {
|
||||||
this.authentication.secretKey = secret;
|
this.authentication.secretKey = secret;
|
||||||
|
|
||||||
this.status = VoiceStatus.CONNECTED;
|
this.status = VoiceStatus.CONNECTED;
|
||||||
|
clearTimeout(this.connectTimeout);
|
||||||
/**
|
/**
|
||||||
* Emitted once the connection is ready, when a promise to join a voice channel resolves,
|
* Emitted once the connection is ready, when a promise to join a voice channel resolves,
|
||||||
* the connection will already be ready.
|
* the connection will already be ready.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue