]> cat aescling's git repositories - mastodon.git/commitdiff
Gracefully stop streaming server (#4103)
authorNolan Lawson <nolan@nolanlawson.com>
Fri, 7 Jul 2017 18:01:00 +0000 (11:01 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 7 Jul 2017 18:01:00 +0000 (20:01 +0200)
streaming/index.js

index 6ee8baea87f1882d5ece0f61cca1fdba344bc900..c7e0de96c2f3f33bfb48882e3892b11ecd4473a7 100644 (file)
@@ -467,6 +467,7 @@ const startWorker = (workerId) => {
   const onExit = () => {
     log.info(`Worker ${workerId} exiting, bye bye`);
     server.close();
+    process.exit(0);
   };
 
   const onError = (err) => {