Update AudioPlayer.js

This commit is contained in:
Crawl 2017-04-13 03:17:00 +02:00 committed by GitHub
parent 81619ac7be
commit 930519c494

View file

@ -130,7 +130,7 @@ class AudioPlayer extends EventEmitter {
playBroadcast(broadcast, { volume = 1, passes = 1 } = {}) {
const options = { volume, passes };
this.destroyAllStreams();
this.destroyCurrentStream();
const dispatcher = this.createDispatcher(broadcast, options);
this.currentStream = {
dispatcher,