Merge pull request #274 from swaylq/master

Fix ``exit`` method bug
This commit is contained in:
jeromewu 2022-08-14 18:29:18 +08:00 committed by GitHub
commit 2ad4a29b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,12 +180,14 @@ module.exports = (_options = {}) => {
running = false;
try {
Core.exit(1);
} catch(e) {
console.log('catch core exit error', e);
} catch (e) {
log(e.message);
} finally {
Core = null;
ffmpeg = null;
runResolve = null;
}
Core = null;
ffmpeg = null;
runResolve = null;
}
};