mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
actually log the damn reason
This commit is contained in:
@@ -34,7 +34,7 @@ class AudioPlayer extends EventEmitter {
|
|||||||
|
|
||||||
cleanup(checkStream, reason) {
|
cleanup(checkStream, reason) {
|
||||||
// cleanup is a lot less aggressive than v9 because it doesn't try to kill every single stream it is aware of
|
// cleanup is a lot less aggressive than v9 because it doesn't try to kill every single stream it is aware of
|
||||||
console.log(Date.now(), 'clean up triggered');
|
console.log(Date.now(), 'clean up triggered due to', reason);
|
||||||
const filter = checkStream && this.currentDispatcher && this.currentDispatcher.stream === checkStream;
|
const filter = checkStream && this.currentDispatcher && this.currentDispatcher.stream === checkStream;
|
||||||
if (this.currentConverter && (checkStream ? filter : true)) {
|
if (this.currentConverter && (checkStream ? filter : true)) {
|
||||||
if (this.currentConverter.process.stdin.destroy) {
|
if (this.currentConverter.process.stdin.destroy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user