Update BaseDispatcher.js

This commit is contained in:
Elysia
2024-11-08 16:04:28 +07:00
parent 84582824cd
commit 4f7d9d2849

View File

@@ -145,6 +145,7 @@ class BaseDispatcher extends Writable {
_cleanup() {
if (this.player.dispatcher === this) this.player.dispatcher = null;
if (this.player.videoDispatcher === this) this.player.videoDispatcher = null;
const { streams } = this;
if (streams.opus) streams.opus.destroy();
if (streams.ffmpeg?.process) {