From 4793dcac66f9b816cbd59bd9c0c22e629a18bf25 Mon Sep 17 00:00:00 2001 From: I-Have-An-Issue <34550332+I-Have-An-Issue@users.noreply.github.com> Date: Tue, 21 Feb 2023 17:37:31 -0500 Subject: [PATCH] ??/ --- src/lib/classes/GameJob.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/classes/GameJob.js b/src/lib/classes/GameJob.js index 2727d94..8800e4b 100644 --- a/src/lib/classes/GameJob.js +++ b/src/lib/classes/GameJob.js @@ -12,9 +12,8 @@ class GameJob extends Job { StartGame(id, port) { return new Promise(async (resolve, reject) => { this.placeId = id - this.port = - - const started = await this.Start() + this.port = port + if (!started) throw new Error("RCCService failed to start") if (!this.client) await this.CreateClient()