QTfrontend/netserver.cpp
changeset 569 4e41c9e9e4d1
parent 541 bc7be7f6d3e8
child 658 a7e625f5d9d0
--- a/QTfrontend/netserver.cpp	Thu Aug 16 07:05:29 2007 +0000
+++ b/QTfrontend/netserver.cpp	Thu Aug 16 11:36:25 2007 +0000
@@ -61,7 +61,11 @@
 void HWNetServer::ClientDisconnect(HWConnectedClient* client)
 {
   QList<HWConnectedClient*>::iterator it=std::find(connclients.begin(), connclients.end(), client);
-  if(it==connclients.end()) return;
+  if(it==connclients.end())
+  {
+    qWarning("Unknown client disconnected");
+    return;
+  }
   for(QList<QStringList>::iterator tmIt=(*it)->m_teamsCfg.begin(); tmIt!=(*it)->m_teamsCfg.end(); ++tmIt) {
     sendOthers(*it, QString("REMOVETEAM:")+delimeter+*(tmIt->begin()) + delimeter + *(tmIt->begin()+1));
   }