voice: move broadcasts to client.voice

This commit is contained in:
Amish Shah
2019-03-23 12:36:53 +00:00
parent 3df56540e2
commit c8225631c9
5 changed files with 53 additions and 23 deletions

View File

@@ -122,7 +122,7 @@ class StreamDispatcher extends Writable {
_cleanup() {
if (this.player.dispatcher === this) this.player.dispatcher = null;
const { streams } = this;
if (streams.broadcast) streams.broadcast.dispatchers.delete(this);
if (streams.broadcast) streams.broadcast.delete(this);
if (streams.opus) streams.opus.destroy();
if (streams.ffmpeg) streams.ffmpeg.destroy();
}