Comparing version 4.3.9 to 4.3.10
@@ -119,9 +119,8 @@ "use strict"; | ||
if (configuration.timeout !== Infinity) { | ||
const timeoutId = setTimeout(() => { | ||
setTimeout(() => { | ||
log.warn('timeout occurred before all the shutdown handlers could run to completion; forcing termination'); // eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
}, configuration.timeout); // $FlowFixMe | ||
timeoutId.unref(); | ||
}, configuration.timeout) // $FlowFixMe | ||
.unref(); | ||
} // @see https://github.com/gajus/lightship/issues/12 | ||
@@ -193,11 +192,9 @@ | ||
} | ||
}); | ||
setTimeout(() => { | ||
log.warn('process did not exit on its own; investigate what is keeping the event loop active'); // eslint-disable-next-line no-process-exit | ||
const timeoutId = setTimeout(() => { | ||
log.warn('process did not exit on its own; investigate what is keeping the event loop active'); // eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
}, 1000); // $FlowFixMe | ||
timeoutId.unref(); | ||
}); | ||
process.exit(1); | ||
}, 1000) // $FlowFixMe | ||
.unref(); | ||
}); | ||
@@ -204,0 +201,0 @@ |
@@ -87,3 +87,3 @@ { | ||
}, | ||
"version": "4.3.9" | ||
"version": "4.3.10" | ||
} |
@@ -129,3 +129,3 @@ // @flow | ||
if (configuration.timeout !== Infinity) { | ||
const timeoutId = setTimeout(() => { | ||
setTimeout(() => { | ||
log.warn('timeout occurred before all the shutdown handlers could run to completion; forcing termination'); | ||
@@ -135,6 +135,6 @@ | ||
process.exit(1); | ||
}, configuration.timeout); | ||
}, configuration.timeout) | ||
// $FlowFixMe | ||
timeoutId.unref(); | ||
// $FlowFixMe | ||
.unref(); | ||
} | ||
@@ -190,13 +190,13 @@ | ||
} | ||
}); | ||
const timeoutId = setTimeout(() => { | ||
log.warn('process did not exit on its own; investigate what is keeping the event loop active'); | ||
setTimeout(() => { | ||
log.warn('process did not exit on its own; investigate what is keeping the event loop active'); | ||
// eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
}, 1000); | ||
// eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
}, 1000) | ||
// $FlowFixMe | ||
timeoutId.unref(); | ||
}); | ||
.unref(); | ||
}; | ||
@@ -203,0 +203,0 @@ |
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
64022