mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-07 03:01:05 +08:00
fix(sandbox): exit if uncaughtException
This commit is contained in:
@@ -118,7 +118,10 @@ process.on('uncaughtException', err => {
|
||||
cmd: 'failed',
|
||||
value: err
|
||||
});
|
||||
throw err;
|
||||
|
||||
// An uncaughException leaves this process in a potentially undetermined state so
|
||||
// we must exit
|
||||
process.exit(-1);
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user