[Server] Fix bug
This commit is contained in:
		
							parent
							
								
									888f31a9bb
								
							
						
					
					
						commit
						d0fc644dc2
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -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'); | ||||
| 	} | ||||
| }); | ||||
| 
 | ||||
| /** | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue