From 116fc2bab8718fc9b18cbd22cb483d6f7fc38235 Mon Sep 17 00:00:00 2001 From: rolleander Date: Tue, 17 Oct 2023 18:14:59 +0200 Subject: [PATCH] update --- .../com/broll/networklib/client/impl/LobbyConnectionSite.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/broll/networklib/client/impl/LobbyConnectionSite.java b/src/main/java/com/broll/networklib/client/impl/LobbyConnectionSite.java index 59cde79..a9b84c9 100644 --- a/src/main/java/com/broll/networklib/client/impl/LobbyConnectionSite.java +++ b/src/main/java/com/broll/networklib/client/impl/LobbyConnectionSite.java @@ -58,6 +58,7 @@ public void receive(NT_LobbyKicked kicked) { if (lobby != null && lobby.getLobbyUpdateListener() != null) { lobby.getLobbyUpdateListener().kickedFromLobby(lobby); } + LastConnection.clear(); resetLobby(); } @@ -67,6 +68,7 @@ public void receive(NT_LobbyClosed closed) { if (lobby != null && lobby.getLobbyUpdateListener() != null) { lobby.getLobbyUpdateListener().closed(lobby); } + LastConnection.clear(); resetLobby(); } @@ -89,7 +91,6 @@ public void onDisconnect() { } private synchronized void resetLobby() { - LastConnection.clear(); clearLobby.run(); lobby = null; }