Gracefully stop streaming server (#4103)

master
Nolan Lawson 7 years ago committed by Eugen Rochko
parent 9fe6cfca48
commit 3f82d8b979
  1. 1
      streaming/index.js

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

Loading…
Cancel
Save