summaryrefslogtreecommitdiff
path: root/UI/PlayerLobby/lobby.gd
diff options
context:
space:
mode:
Diffstat (limited to 'UI/PlayerLobby/lobby.gd')
-rw-r--r--UI/PlayerLobby/lobby.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/UI/PlayerLobby/lobby.gd b/UI/PlayerLobby/lobby.gd
index 4169478..8c1c4a9 100644
--- a/UI/PlayerLobby/lobby.gd
+++ b/UI/PlayerLobby/lobby.gd
@@ -45,7 +45,7 @@ func _ready() -> void:
if multiplayer.is_server():
$KeepAliveTimer.start()
$KeepAliveTimer.timeout.connect(func():
- GameLobby.request_post("/keep-alive")
+ await GameLobby.request_post("/keep-alive")
)
@@ -77,6 +77,7 @@ func update_list(current_list: Control, player_ids: Array):
control.get_child(0).text = str(player.username)
control.get_child(0).tooltip_text = str(id)
current_list.move_child(control, player_ids.find(id) + 1)
+ # TODO: test with 3 players
func _on_peer_connected(id):