From c8ff11b785382ed5774e7b37f1994da598960a3a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 7 Jul 2017 11:01:00 -0700 Subject: [PATCH] Gracefully stop streaming server (#4103) --- streaming/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/streaming/index.js b/streaming/index.js index 6ee8baea87..c7e0de96c2 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -467,6 +467,7 @@ const startWorker = (workerId) => { const onExit = () => { log.info(`Worker ${workerId} exiting, bye bye`); server.close(); + process.exit(0); }; const onError = (err) => {