Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolleander committed Oct 17, 2023
1 parent 4b1aba5 commit 116fc2b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void receive(NT_LobbyKicked kicked) {
if (lobby != null && lobby.getLobbyUpdateListener() != null) {
lobby.getLobbyUpdateListener().kickedFromLobby(lobby);
}
LastConnection.clear();
resetLobby();
}

Expand All @@ -67,6 +68,7 @@ public void receive(NT_LobbyClosed closed) {
if (lobby != null && lobby.getLobbyUpdateListener() != null) {
lobby.getLobbyUpdateListener().closed(lobby);
}
LastConnection.clear();
resetLobby();
}

Expand All @@ -89,7 +91,6 @@ public void onDisconnect() {
}

private synchronized void resetLobby() {
LastConnection.clear();
clearLobby.run();
lobby = null;
}
Expand Down

0 comments on commit 116fc2b

Please sign in to comment.