Skip to content

Commit

Permalink
Merge pull request #2 from ente-io/fix-exit-bug
Browse files Browse the repository at this point in the history
Fix ``exit`` method bug
  • Loading branch information
abhinavkgrd authored Jan 22, 2024
2 parents 2d6fae8 + 115a7c8 commit 20fc5ba
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/createFFmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,15 @@ module.exports = (_options = {}) => {
throw NO_LOAD;
} else {
running = false;
Core.exit(1);
Core = null;
ffmpeg = null;
runResolve = null;
try {
Core.exit(1);
} catch (e) {
log(e.message);
} finally {
Core = null;
ffmpeg = null;
runResolve = null;
}
}
};

Expand Down

0 comments on commit 20fc5ba

Please sign in to comment.