Skip to content

Commit

Permalink
Use hydra.isConnected instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Dec 14, 2024
1 parent 4fc9be0 commit e1ac451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion referee/referee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit e1ac451

Please sign in to comment.