Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 2:36:46 PM (15 years ago)
Author:
scheusso
Message:

fix in disconnect behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/TrafficControl.cc

    r3301 r3312  
    314314  void TrafficControl::clientDisconnected(unsigned int clientID)
    315315  {
    316     assert(clientListTemp_.find(clientID) != clientListTemp_.end() );
    317     assert(clientListPerm_.find(clientID) != clientListPerm_.end() );
     316    if( clientListPerm_.find(clientID) == clientListPerm_.end() )
     317    {
     318      assert(!this->bActive_);
     319      return;
     320    }
    318321    clientListTemp_.erase(clientListTemp_.find(clientID));
    319     clientListPerm_.erase(clientListPerm_.find(clientID));
     322    if( clientListTemp_.find(clientID) != clientListTemp_.end() )
     323      clientListPerm_.erase(clientListPerm_.find(clientID));
    320324  }
    321325
Note: See TracChangeset for help on using the changeset viewer.