mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix econnreset in playRawStream (#427)
This commit is contained in:
@@ -71,7 +71,10 @@ export default class AudioEncoder {
|
||||
'pipe:1'
|
||||
]);
|
||||
|
||||
stream.pipe(enc.stdin);
|
||||
var dest = stream.pipe(enc.stdin);
|
||||
|
||||
dest.on('unpipe', () => dest.destroy());
|
||||
dest.on('error', err => dest.destroy());
|
||||
|
||||
this.hookEncodingProcess(resolve, reject, enc, stream);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user