Billions must commit
This commit is contained in:
parent
5c89e6743a
commit
1d306bf777
|
|
@ -13,17 +13,17 @@ class RCCService extends EventEmitter {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
if(process.platform == "win32") {
|
if(process.platform == "win32") {
|
||||||
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, port], options)
|
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, this.port], options)
|
||||||
} else {
|
} else {
|
||||||
this.proc = child_process.spawn("wine", ["RCCService.exe", "-Console", "-PlaceId:-1", `-Port`, port], options)
|
this.proc = child_process.spawn("wine", ["RCCService.exe", "-Console", "-PlaceId:-1", `-Port`, this.port], options)
|
||||||
}
|
}
|
||||||
this.proc.once("spawn", () => {
|
this.proc.once("spawn", () => {
|
||||||
logger.info(`Spawning RCCService instance on port ${port}`);
|
logger.info(`Spawning RCCService instance on port ${this.port}`);
|
||||||
resolve(this.proc)
|
resolve(this.proc)
|
||||||
})
|
})
|
||||||
this.proc.once("exit", () => {
|
this.proc.once("exit", () => {
|
||||||
this.proc = null;
|
this.proc = null;
|
||||||
logger.info(`Job has ended, closing RCCService on port ${port}`)
|
logger.info(`Job has ended, closing RCCService on port ${this.port}`)
|
||||||
})
|
})
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
logger.error(_);
|
logger.error(_);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue