voice: clear connect timeout after connected (fixes #2752)

This commit is contained in:
Amish Shah
2018-08-15 14:25:47 +01:00
parent 9a95b6a1e8
commit 64832abfdb

View File

@@ -420,6 +420,7 @@ class VoiceConnection extends EventEmitter {
this.authentication.secretKey = secret;
this.status = VoiceStatus.CONNECTED;
clearTimeout(this.connectTimeout);
/**
* Emitted once the connection is ready, when a promise to join a voice channel resolves,
* the connection will already be ready.