mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 00:02:52 +00:00
guarantee promise resolution for voice connections
This commit is contained in:
parent
1be0270796
commit
44b34154e8
2 changed files with 2 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -125,6 +125,7 @@ class ClientVoiceManager {
|
||||||
reject,
|
reject,
|
||||||
});
|
});
|
||||||
this._sendWSJoin(channel);
|
this._sendWSJoin(channel);
|
||||||
|
this.client.setTimeout(() => reject(new Error('connection not established in 15s time period')), 15000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue