From 8bea3a9dc468fb6f87b47c601adf894c21bd1381 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Tue, 27 Aug 2019 15:46:33 -0300 Subject: [PATCH] process exit --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index a75b871..d4464a4 100644 --- a/index.js +++ b/index.js @@ -72,6 +72,7 @@ function heartbeat() { // sends out pings plus a conservative assumption of the latency. pingTimeout = setTimeout(() => { client.terminate(); + process.exit(1); }, 10000 + 1000); } console.log('Sevice connected to wsServer: ' + config.urlHO); -- 1.9.1