From a04842705a9cd92dede55865b00ea0d5cd303fb3 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 4 Mar 2018 21:24:17 +0200 Subject: [PATCH] Fixed crashing when clicking the "refreshing server list" text. Closes #312 --- Barotrauma/BarotraumaClient/Source/Screens/ServerListScreen.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/Screens/ServerListScreen.cs b/Barotrauma/BarotraumaClient/Source/Screens/ServerListScreen.cs index 7390f1c62..6a21849b5 100644 --- a/Barotrauma/BarotraumaClient/Source/Screens/ServerListScreen.cs +++ b/Barotrauma/BarotraumaClient/Source/Screens/ServerListScreen.cs @@ -146,6 +146,8 @@ namespace Barotrauma private bool SelectServer(GUIComponent component, object obj) { + if (obj == null || waitingForRefresh) return false; + ServerInfo serverInfo; try {