Skip to content

Commit

Permalink
voice: clear connect timeout after connected (fixes #2752)
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Aug 15, 2018
1 parent 9a95b6a commit 64832ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/voice/VoiceConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 64832ab

Please sign in to comment.