Skip to content

Commit daf3d5f

Browse files
committed
catch exit error
1 parent 6ceccf9 commit daf3d5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/createFFmpeg.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ module.exports = (_options = {}) => {
178178
throw NO_LOAD;
179179
} else {
180180
running = false;
181-
Core.exit(1);
181+
try {
182+
Core.exit(1);
183+
} catch(e) {
184+
console.log('catch core exit error', e);
185+
}
182186
Core = null;
183187
ffmpeg = null;
184188
runResolve = null;

0 commit comments

Comments
 (0)