When exiting a room where one was host, server sends a REMOVE_TEAM for the local team. It appears that this loop would not break in that case. Add a log message and a break. (I've hit a frozen frontend twice now)
authornemo
Wed, 08 Aug 2012 20:32:27 -0400
changeset 7523 0790527b4e00
parent 7521 093ea41051c5
child 7526 ff3a05e29ddd
When exiting a room where one was host, server sends a REMOVE_TEAM for the local team. It appears that this loop would not break in that case. Add a log message and a break. (I've hit a frozen frontend twice now)
QTfrontend/ui/widget/teamselect.cpp
--- a/QTfrontend/ui/widget/teamselect.cpp	Wed Aug 08 22:08:23 2012 +0400
+++ b/QTfrontend/ui/widget/teamselect.cpp	Wed Aug 08 20:32:27 2012 -0400
@@ -135,6 +135,11 @@
             curPlayingTeams.erase(itPlay);
             break;
         }
+        else
+        {
+            qWarning() << QString("removeNetTeam: team '%1' was actually a local team!").arg(team.name());
+            break;
+        }
     }
     emit setEnabledGameStart(curPlayingTeams.size()>1);
 }