Comparing version 3.29.1 to 3.29.2
@@ -0,1 +1,8 @@ | ||
## [3.29.2](https://github.com/OptimalBits/bull/compare/v3.29.1...v3.29.2) (2021-09-08) | ||
### Bug Fixes | ||
* **connection:** fail only if redis connection does not recover ([0ca4c6b](https://github.com/OptimalBits/bull/commit/0ca4c6b4d57efa78e5ca484cb8bed2a6961646a3)) | ||
## [3.29.1](https://github.com/OptimalBits/bull/compare/v3.29.0...v3.29.1) (2021-08-26) | ||
@@ -2,0 +9,0 @@ |
@@ -22,2 +22,3 @@ 'use strict'; | ||
function handleReady() { | ||
client.removeListener('end', handleEnd); | ||
client.removeListener('error', handleError); | ||
@@ -27,9 +28,16 @@ resolve(); | ||
let lastError; | ||
function handleError(err) { | ||
lastError = err; | ||
} | ||
function handleEnd() { | ||
client.removeListener('ready', handleReady); | ||
reject(err); | ||
client.removeListener('error', handleError); | ||
reject(lastError); | ||
} | ||
client.once('ready', handleReady); | ||
client.once('error', handleError); | ||
client.on('error', handleError); | ||
client.once('end', handleEnd); | ||
} | ||
@@ -36,0 +44,0 @@ }); |
{ | ||
"name": "bull", | ||
"version": "3.29.1", | ||
"version": "3.29.2", | ||
"description": "Job manager", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173829
3273