Fix `exit
` method bug
This commit is contained in:
parent
fcc312abd3
commit
256945282b
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user