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)
--- 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);
}