This commit is contained in:
Amish Shah
2018-01-21 10:34:14 +00:00
parent aa09490724
commit 76891a1e00

View File

@@ -76,7 +76,7 @@ class StreamDispatcher extends Writable {
*/
if (type && err) {
err.message = `${type} stream: ${err.message}`;
this.emit('error', err);
this.emit(this.player.dispatcher === this ? 'error' : 'debug', err);
}
this.destroy();
};