From 1d306bf777739bfebed244cf1a18211eb35093a1 Mon Sep 17 00:00:00 2001 From: unexp Date: Fri, 20 Jan 2023 08:55:59 -0300 Subject: [PATCH] Billions must commit --- src/lib/classes/RCCService.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/classes/RCCService.js b/src/lib/classes/RCCService.js index 417feca..642047c 100644 --- a/src/lib/classes/RCCService.js +++ b/src/lib/classes/RCCService.js @@ -13,17 +13,17 @@ class RCCService extends EventEmitter { return new Promise((resolve, reject) => { try { 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 { - 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", () => { - logger.info(`Spawning RCCService instance on port ${port}`); + logger.info(`Spawning RCCService instance on port ${this.port}`); resolve(this.proc) }) this.proc.once("exit", () => { 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 (_) { logger.error(_);