[Orxonox-commit 1206] r5926 - code/branches/core5/src/libraries/network

scheusso at orxonox.net scheusso at orxonox.net
Sat Oct 10 00:56:55 CEST 2009


Author: scheusso
Date: 2009-10-10 00:56:55 +0200 (Sat, 10 Oct 2009)
New Revision: 5926

Modified:
   code/branches/core5/src/libraries/network/ServerConnection.cc
Log:
more consistent client disconnection handling


Modified: code/branches/core5/src/libraries/network/ServerConnection.cc
===================================================================
--- code/branches/core5/src/libraries/network/ServerConnection.cc	2009-10-09 16:46:54 UTC (rev 5925)
+++ code/branches/core5/src/libraries/network/ServerConnection.cc	2009-10-09 22:56:55 UTC (rev 5926)
@@ -129,8 +129,7 @@
           enet_packet_destroy(event.packet);
           break;
         case ENET_EVENT_TYPE_DISCONNECT:
-          if(ClientInformation::findClient(&(event.peer->address)))
-            delete ClientInformation::findClient(&(event.peer->address));
+          removePeer( &event );
           temp = ClientInformation::getBegin();
           break;
         }




More information about the Orxonox-commit mailing list