Use 'once'
This commit is contained in:
parent
ce04cbcb45
commit
29e5b1ff97
2
app.js
2
app.js
@ -123,7 +123,7 @@ process.on('SIGHUP', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on('SIGTERM', function () {
|
process.once('SIGTERM', function () {
|
||||||
listener.close(function () {
|
listener.close(function () {
|
||||||
server.batch.stop(function () {
|
server.batch.stop(function () {
|
||||||
server.batch.drain(function (err) {
|
server.batch.drain(function (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user