Use 'once'

This commit is contained in:
Daniel García Aubert 2019-04-04 18:31:07 +02:00
parent ce04cbcb45
commit 29e5b1ff97

2
app.js
View File

@ -123,7 +123,7 @@ process.on('SIGHUP', function() {
}
});
process.on('SIGTERM', function () {
process.once('SIGTERM', function () {
listener.close(function () {
server.batch.stop(function () {
server.batch.drain(function (err) {