Skip to content

Commit

Permalink
chore(lobbies): remove crash on invalid transport (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry authored Sep 17, 2024
1 parent 20878ff commit 47deee2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/lobbies/sdk_addons/godot/multiplayer_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func setup_multiplayer():
multiplayer.set_multiplayer_peer(peer)
else:
RivetLogger.error("Unsupported transport: %s" % transport)
OS.crash("Unsupported transport")
return

# Notify lobby ready
var request = {
Expand All @@ -146,8 +146,11 @@ func setup_multiplayer():
if response.is_ok():
RivetLogger.log("Lobby ready")
else:
RivetLogger.warning("Lobby ready failed failed: %s" % response.body)
RivetLogger.error("Lobby ready failed failed: %s" % response.body)

# Crash the server so Rivet stops waiting for the server to start
OS.crash("Lobby ready failed")

return

## Connect to a lobby returned from the backend.
Expand Down

0 comments on commit 47deee2

Please sign in to comment.