mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Another FFMPEG fix attempt (#384)
* Fix my very silly mistake * Another FFMPEG issue fix attempt * Add a missing semicolon Yes, I really did make a commit just for this. :)
This commit is contained in:
@@ -161,6 +161,12 @@ var AudioEncoder = (function () {
|
||||
resolve(data);
|
||||
});
|
||||
|
||||
this.volume.once("end", function () {
|
||||
killProcess();
|
||||
|
||||
reject("end");
|
||||
});
|
||||
|
||||
this.volume.on("end", function () {
|
||||
killProcess();
|
||||
|
||||
|
||||
@@ -150,6 +150,12 @@ export default class AudioEncoder {
|
||||
resolve(data);
|
||||
});
|
||||
|
||||
this.volume.once("end", () => {
|
||||
killProcess();
|
||||
|
||||
reject("end");
|
||||
});
|
||||
|
||||
this.volume.on("end", () => {
|
||||
killProcess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user