Gracefully stop streaming server (#4103)

lolsob-rspec
Nolan Lawson 2017-07-07 11:01:00 -07:00 committed by Eugen Rochko
parent 890cc25491
commit c8ff11b785
1 changed files with 1 additions and 0 deletions

View 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) => {