catch exit error

This commit is contained in:
seminelee 2021-08-17 20:12:45 +08:00
parent 0ab43d01d7
commit 846285c136

View File

@ -178,7 +178,11 @@ module.exports = (_options = {}) => {
throw NO_LOAD;
} else {
running = false;
Core.exit(1);
try {
Core.exit(1);
} catch(e) {
console.log('catch core exit error', e);
}
Core = null;
ffmpeg = null;
runResolve = null;