From d0fc644dc2688f48213411738d7b6935526fc730 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 09:33:38 +0900 Subject: [PATCH] [Server] Fix bug --- src/server.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index 63a9b18b6b..5f00fd2813 100644 --- a/src/server.ts +++ b/src/server.ts @@ -5,6 +5,7 @@ import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; +import * as cluster from 'cluster'; import * as express from 'express'; import vhost = require('vhost'); @@ -53,8 +54,10 @@ require('./api/streaming')(server); * Server listen */ server.listen(config.port, () => { - // Send a 'ready' message to parent process - process.send('ready'); + if (cluster.isWorker) { + // Send a 'ready' message to parent process + process.send('ready'); + } }); /**