mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00: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:
parent
8d64435def
commit
95e3e3e3dc
2 changed files with 12 additions and 0 deletions
|
|
@ -161,6 +161,12 @@ var AudioEncoder = (function () {
|
||||||
resolve(data);
|
resolve(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.volume.once("end", function () {
|
||||||
|
killProcess();
|
||||||
|
|
||||||
|
reject("end");
|
||||||
|
});
|
||||||
|
|
||||||
this.volume.on("end", function () {
|
this.volume.on("end", function () {
|
||||||
killProcess();
|
killProcess();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,12 @@ export default class AudioEncoder {
|
||||||
resolve(data);
|
resolve(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.volume.once("end", () => {
|
||||||
|
killProcess();
|
||||||
|
|
||||||
|
reject("end");
|
||||||
|
});
|
||||||
|
|
||||||
this.volume.on("end", () => {
|
this.volume.on("end", () => {
|
||||||
killProcess();
|
killProcess();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue