Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8174 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 6, 2006, 10:45:41 AM (18 years ago)
Author:
rennerc
Message:

reconnect to unused clientslots works now

File:
1 edited

Legend:

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

    r8153 r8174  
    264264
    265265  //check if connections are ok else remove them
    266   for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ )
     266  for ( PeerList::iterator it = peers.begin(); it != peers.end(); )
    267267  {
    268268    if ( 
     
    297297
    298298      freeSocketSlots.push_back( it->second.userId );
    299 
    300     }
     299     
     300      PeerList::iterator delit = it;
     301      it++;
     302     
     303      peers.erase( delit );
     304     
     305      continue;
     306    }
     307   
     308    it++;
    301309  }
    302310
Note: See TracChangeset for help on using the changeset viewer.