mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-02 08:27:43 +08:00
fix: catch pause errors when closing
This commit is contained in:
@@ -593,6 +593,7 @@ Queue.prototype.close = function(doNotWaitJobs) {
|
||||
isReady = false;
|
||||
})
|
||||
.then(() => isReady && this.pause(true, doNotWaitJobs))
|
||||
.catch(() => void 0) // Ignore possible error from pause
|
||||
.finally(() => this._clearTimers())
|
||||
.then(() => {
|
||||
if (!this.childPool) {
|
||||
|
||||
Reference in New Issue
Block a user