mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix(music): resolve ghost players on channel/guild delete and fix clear command NaN range
This commit is contained in:
1 parent
a780ec22c8
commit
618ecb1a0b
9 files changed
+94
-13
No files matched your search
@@ -720,6 +720,7 @@ class Player extends EventEmitter {
|
||||
this._onLavalinkPlayerDisconnect = null;
|
||||
}
|
||||
}
|
||||
this.queue?.reset();
|
||||
this.leaving = true;
|
||||
this._stopInactivityTimer();
|
||||
this._autoplay = false;
|
||||
@@ -747,6 +748,7 @@ class Player extends EventEmitter {
|
||||
vm.leaveChannel(this._channelId);
|
||||
} catch(e) { /* best effort */ }
|
||||
}
|
||||
this.removeAllListeners();
|
||||
} catch (e) {
|
||||
logger.error("[Player] destroy error:", e.message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user