Changeset 9587 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 28, 2006, 11:03:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9584 r9587 734 734 void NetworkStream::handleDisconnect( int userId ) 735 735 { 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; 747 747 748 748 … … 756 756 this->freeSocketSlots.push_back( userId ); 757 757 758 peers.erase( userId); 758 this->networkMonitor->removeNode(&this->peers[userId]); 759 this->peers.erase( userId); 759 760 } 760 761
Note: See TracChangeset
for help on using the changeset viewer.