Fixed "queue empty" exception in GameServer.WaitForPlayersReady

This commit is contained in:
Regalis
2016-06-20 18:31:43 +03:00
parent d520c00dc9
commit 325332c0af
+1 -1
View File
@@ -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);