From e1ac451a3580ecd853d849d682d23b99f7e2f5d3 Mon Sep 17 00:00:00 2001 From: Pi Lanningham Date: Sat, 14 Dec 2024 04:39:41 -0500 Subject: [PATCH] Use hydra.isConnected instead --- referee/referee.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/referee/referee.ts b/referee/referee.ts index d89b2f1..97d61d4 100644 --- a/referee/referee.ts +++ b/referee/referee.ts @@ -235,7 +235,7 @@ const hydra = new HydraMultiplayerDedicated({ }); global.HydraMultiplayer = hydra; -while(!connected) { +while(!hydra.hydra.isConnected()) { console.log("Sleeping, connected: ", connected); await new Promise((resolve) => setTimeout(resolve, 3000)); }