Changeset 6144 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Dec 16, 2005, 7:44:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_stream.cc
r6139 r6144 27 27 #include "synchronizeable.h" 28 28 #include "network_manager.h" 29 #include "list.h"30 29 #include "debug.h" 31 30 #include "class_list.h" 31 #include <algorithm> 32 32 33 33 /* include your own header */ … … 133 133 void NetworkStream::disconnectSynchronizeable(Synchronizeable& sync) 134 134 { 135 this->synchronizeables.remove(&sync); 135 // removing the Synchronizeable from the List. 136 std::list<Synchronizeable*>::iterator disconnectSynchro = std::find(this->synchronizeables.begin(), this->synchronizeables.end(), &sync); 137 if (disconnectSynchro != this->synchronizeables.end()) 138 this->synchronizeables.erase(disconnectSynchro); 136 139 137 140 if( this->networkSockets.size()<=0 )
Note: See TracChangeset
for help on using the changeset viewer.