probably would cause an error somewhere

This commit is contained in:
Amish Shah
2017-10-25 23:21:02 +01:00
parent 65673197d4
commit 48452173ca

View File

@@ -102,6 +102,7 @@ class StreamDispatcher extends Writable {
}
destroy() {
if (this.player.dispatcher !== this) return;
const streams = this.player.streams;
if (streams.opus) streams.opus.unpipe(this);
if (streams.ffmpeg) streams.ffmpeg.destroy();