graceful-shutdown
Advanced tools
Comparing version 0.0.2 to 0.0.3
0.0.3 / 2013-12-12 | ||
================== | ||
* fire callback on server close event | ||
0.0.2 / 2013-12-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -57,5 +57,5 @@ 'use strict'; | ||
debug('_shutdown'); | ||
if (this.cb) this.server.on('close', this.cb); | ||
this.server.close(); | ||
if (this.cb) this.cb(); | ||
}; | ||
{ | ||
"name": "graceful-shutdown", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Gracefully shutdown a server upon receiving the specified signal(s)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
#graceful-shutdown | ||
=================== | ||
@@ -4,0 +3,0 @@ Shuts down an `HTTP{s}Server` gracefully upon the first specified signal received by the process and executes the optional callback. |
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
5937
27