Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9587 in orxonox.OLD for branches/proxy/src/lib


Ignore:
Timestamp:
Jul 28, 2006, 11:03:44 PM (18 years ago)
Author:
patrick
Message:

localy connected clients get removed also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.cc

    r9584 r9587  
    734734void NetworkStream::handleDisconnect( int userId )
    735735{
    736   peers[userId].socket->disconnectServer();
    737   delete peers[userId].socket;
    738   peers[userId].socket = NULL;
    739 
    740   if ( peers[userId].handshake )
    741     delete peers[userId].handshake;
    742   peers[userId].handshake = NULL;
    743 
    744   if ( peers[userId].connectionMonitor )
    745     delete peers[userId].connectionMonitor;
    746   peers[userId].connectionMonitor = NULL;
     736  this->peers[userId].socket->disconnectServer();
     737  delete this->peers[userId].socket;
     738  this->peers[userId].socket = NULL;
     739
     740  if ( this->peers[userId].handshake )
     741    delete this->peers[userId].handshake;
     742  this->peers[userId].handshake = NULL;
     743
     744  if ( this->peers[userId].connectionMonitor )
     745    delete this->peers[userId].connectionMonitor;
     746  this->peers[userId].connectionMonitor = NULL;
    747747
    748748
     
    756756  this->freeSocketSlots.push_back( userId );
    757757
    758   peers.erase( userId);
     758  this->networkMonitor->removeNode(&this->peers[userId]);
     759  this->peers.erase( userId);
    759760}
    760761
Note: See TracChangeset for help on using the changeset viewer.