voice: don't clear reject timeout until connection fully resolved (#2421, #2578)

This commit is contained in:
Amish Shah
2018-08-09 13:00:46 +01:00
parent 9dfcb61a90
commit 55863efa15

View File

@@ -234,7 +234,6 @@ class VoiceConnection extends EventEmitter {
const { token, endpoint, sessionID } = this.authentication;
if (token && endpoint && sessionID) {
clearTimeout(this.connectTimeout);
this.status = VoiceStatus.CONNECTING;
/**
* Emitted when we successfully initiate a voice connection.