From 29e5b1ff97e824b15ed3035d7ad8980b966a79a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 4 Apr 2019 18:31:07 +0200 Subject: [PATCH] Use 'once' --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 8bc8c9dd..df1990e3 100755 --- a/app.js +++ b/app.js @@ -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) {