[Orxonox-commit 1128] r5849 - code/branches/core5/src/libraries/network

scheusso at orxonox.net scheusso at orxonox.net
Thu Oct 1 11:42:44 CEST 2009


Author: scheusso
Date: 2009-10-01 11:42:44 +0200 (Thu, 01 Oct 2009)
New Revision: 5849

Modified:
   code/branches/core5/src/libraries/network/Connection.cc
   code/branches/core5/src/libraries/network/Connection.h
   code/branches/core5/src/libraries/network/ServerConnection.cc
   code/branches/core5/src/libraries/network/ServerConnection.h
Log:
some svn:eol-style native
fix which improves disconnect handling


Modified: code/branches/core5/src/libraries/network/Connection.cc
===================================================================
--- code/branches/core5/src/libraries/network/Connection.cc	2009-10-01 09:11:01 UTC (rev 5848)
+++ code/branches/core5/src/libraries/network/Connection.cc	2009-10-01 09:42:44 UTC (rev 5849)
@@ -29,7 +29,7 @@
 #include "Connection.h"
 
 #include <cassert>
-#define WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
 #include <enet/enet.h>
 #include "packet/Packet.h"
 


Property changes on: code/branches/core5/src/libraries/network/Connection.cc
___________________________________________________________________
Added: svn:eol-style
   + native


Property changes on: code/branches/core5/src/libraries/network/Connection.h
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: code/branches/core5/src/libraries/network/ServerConnection.cc
===================================================================
--- code/branches/core5/src/libraries/network/ServerConnection.cc	2009-10-01 09:11:01 UTC (rev 5848)
+++ code/branches/core5/src/libraries/network/ServerConnection.cc	2009-10-01 09:42:44 UTC (rev 5849)
@@ -102,8 +102,6 @@
   void ServerConnection::disconnectClient(ClientInformation *client)
   {
     Connection::disconnectPeer( client->getPeer() );
-    std::cout << "disconnecting peer and removing client" << endl;
-    delete client;
   }
   
   void ServerConnection::disconnectPeer( ENetEvent* event )


Property changes on: code/branches/core5/src/libraries/network/ServerConnection.cc
___________________________________________________________________
Added: svn:eol-style
   + native


Property changes on: code/branches/core5/src/libraries/network/ServerConnection.h
___________________________________________________________________
Added: svn:eol-style
   + native




More information about the Orxonox-commit mailing list