From 325332c0af4c51ae59b534c5911895441506f6ad Mon Sep 17 00:00:00 2001 From: Regalis Date: Mon, 20 Jun 2016 18:31:43 +0300 Subject: [PATCH] Fixed "queue empty" exception in GameServer.WaitForPlayersReady --- Subsurface/Source/Networking/GameServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Subsurface/Source/Networking/GameServer.cs b/Subsurface/Source/Networking/GameServer.cs index f15001b48..27a98914e 100644 --- a/Subsurface/Source/Networking/GameServer.cs +++ b/Subsurface/Source/Networking/GameServer.cs @@ -904,7 +904,7 @@ namespace Barotrauma.Networking { fileTransferTimeOut -= CoroutineManager.UnscaledDeltaTime; - if (GUIMessageBox.MessageBoxes.Peek() == null) + if (GUIMessageBox.MessageBoxes.Count==0) { var messageBox = new GUIMessageBox("File transfer in progress", "The round will be started after the submarine file has been sent to all players.", new string[] {"Cancel transfer"}, 400, 400);