mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
try fix
This commit is contained in:
parent
aa09490724
commit
76891a1e00
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class StreamDispatcher extends Writable {
|
||||||
*/
|
*/
|
||||||
if (type && err) {
|
if (type && err) {
|
||||||
err.message = `${type} stream: ${err.message}`;
|
err.message = `${type} stream: ${err.message}`;
|
||||||
this.emit('error', err);
|
this.emit(this.player.dispatcher === this ? 'error' : 'debug', err);
|
||||||
}
|
}
|
||||||
this.destroy();
|
this.destroy();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue