mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
voice: clear connect timeout after connected (fixes #2752)
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user