From 6e13b89832593dddd421c87f0b0323c173a9f3a1 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 63a9b18b6..5f00fd281 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'); + } }); /**