From: Nolan Lawson Date: Fri, 7 Jul 2017 18:01:00 +0000 (-0700) Subject: Gracefully stop streaming server (#4103) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=3f82d8b979104c7056fe431a9c2bd32e1004c9c5;p=mastodon.git Gracefully stop streaming server (#4103) --- diff --git a/streaming/index.js b/streaming/index.js index 6ee8baea8..c7e0de96c 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) => {