Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
UI change that I forgot to copy over
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed Feb 1, 2021
1 parent e92d776 commit 0fbad47
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/MatchScreen.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ func _on_match_button_pressed(mode) -> void:
# If our session has expired, show the ConnectionScreen again.
if Online.nakama_session == null or Online.nakama_session.is_expired():
UI.show_message("Login session has expired")
UI.show_screen("ConnectionScreen")
return
UI.show_screen("ConnectionScreen", [{ reconnect = true }])

# Wait to see if we get a new valid session.
yield(Online, "session_changed")
if Online.nakama_session == null:
return

# Connect socket to realtime Nakama API if not connected.
if not Online.is_nakama_socket_connected():
Expand Down

0 comments on commit 0fbad47

Please sign in to comment.