mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
hotfix ( idk )
This commit is contained in:
1 parent
092268281a
commit
862f326996
4 files changed
+78
-6
No files matched your search
+6
-2
@@ -1195,6 +1195,12 @@ export default class Player extends EventEmitter {
|
||||
}
|
||||
|
||||
const channelId = this._channelId;
|
||||
if (this._revoice && channelId && typeof this._revoice.markIntentionalDisconnect === "function") {
|
||||
this._revoice.markIntentionalDisconnect(channelId);
|
||||
}
|
||||
|
||||
await this.connection.leave();
|
||||
|
||||
if (this._revoice && channelId) {
|
||||
try {
|
||||
if (typeof this._revoice.deleteConnection === "function") {
|
||||
@@ -1205,8 +1211,6 @@ export default class Player extends EventEmitter {
|
||||
} catch(e) { logger.warn("[Player] Delete connection on leave error:", e?.message); }
|
||||
}
|
||||
|
||||
await this.connection.leave();
|
||||
|
||||
this.queue.reset();
|
||||
this.connection = null;
|
||||
this._paused = false;
|
||||
|
||||
Reference in new issue
Block a user