guarantee promise resolution for voice connections

This commit is contained in:
Amish Shah
2016-09-03 21:32:06 +01:00
parent 1be0270796
commit 44b34154e8
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -125,6 +125,7 @@ class ClientVoiceManager {
reject,
});
this._sendWSJoin(channel);
this.client.setTimeout(() => reject(new Error('connection not established in 15s time period')), 15000);
});
}
}