mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
[Server] Fix bug
This commit is contained in:
parent
e3de444e10
commit
6e13b89832
@ -5,6 +5,7 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
import * as https from 'https';
|
import * as https from 'https';
|
||||||
|
import * as cluster from 'cluster';
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
import vhost = require('vhost');
|
import vhost = require('vhost');
|
||||||
|
|
||||||
@ -53,8 +54,10 @@ require('./api/streaming')(server);
|
|||||||
* Server listen
|
* Server listen
|
||||||
*/
|
*/
|
||||||
server.listen(config.port, () => {
|
server.listen(config.port, () => {
|
||||||
// Send a 'ready' message to parent process
|
if (cluster.isWorker) {
|
||||||
process.send('ready');
|
// Send a 'ready' message to parent process
|
||||||
|
process.send('ready');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user