Fix `exit
` method bug
This commit is contained in:
parent
fcc312abd3
commit
256945282b
@ -178,10 +178,15 @@ module.exports = (_options = {}) => {
|
|||||||
throw NO_LOAD;
|
throw NO_LOAD;
|
||||||
} else {
|
} else {
|
||||||
running = false;
|
running = false;
|
||||||
Core.exit(1);
|
try {
|
||||||
Core = null;
|
Core.exit(1);
|
||||||
ffmpeg = null;
|
} catch (e) {
|
||||||
runResolve = null;
|
log(e.message);
|
||||||
|
} finally {
|
||||||
|
Core = null;
|
||||||
|
ffmpeg = null;
|
||||||
|
runResolve = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user