Comparing version 4.3.8 to 4.3.9
@@ -135,2 +135,4 @@ "use strict"; | ||
const check = () => { | ||
log.debug('checking if there are live beacons'); | ||
if (beacons.length > 0) { | ||
@@ -141,2 +143,4 @@ log.info({ | ||
} else { | ||
log.info('there are no live beacons; proceeding to terminate the Node.js process'); | ||
eventEmitter.off('beaconStateChange', check); | ||
resolve(); | ||
@@ -146,5 +150,3 @@ } | ||
eventEmitter.on('beaconStateChange', () => { | ||
check(); | ||
}); | ||
eventEmitter.on('beaconStateChange', check); | ||
check(); | ||
@@ -154,2 +156,3 @@ }); | ||
log.debug('running %d shutdown handler(s)', shutdownHandlers.length); | ||
var _iteratorNormalCompletion = true; | ||
@@ -156,0 +159,0 @@ var _didIteratorError = false; |
@@ -87,3 +87,3 @@ { | ||
}, | ||
"version": "4.3.8" | ||
"version": "4.3.9" | ||
} |
@@ -147,2 +147,4 @@ // @flow | ||
const check = () => { | ||
log.debug('checking if there are live beacons'); | ||
if (beacons.length > 0) { | ||
@@ -153,2 +155,6 @@ log.info({ | ||
} else { | ||
log.info('there are no live beacons; proceeding to terminate the Node.js process'); | ||
eventEmitter.off('beaconStateChange', check); | ||
resolve(); | ||
@@ -158,5 +164,3 @@ } | ||
eventEmitter.on('beaconStateChange', () => { | ||
check(); | ||
}); | ||
eventEmitter.on('beaconStateChange', check); | ||
@@ -167,2 +171,4 @@ check(); | ||
log.debug('running %d shutdown handler(s)', shutdownHandlers.length); | ||
for (const shutdownHandler of shutdownHandlers) { | ||
@@ -169,0 +175,0 @@ try { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64364
584