Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3312 for code/trunk


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

fix in disconnect behaviour

Location:
code/trunk/src/network
Files:
2 edited

Legend:

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

    r3214 r3312  
    125125    ClientInformation *temp = ClientInformation::getBegin();
    126126    while(temp!=0){
    127       disconnectPeer( &event );
     127      disconnectClient( temp );
    128128      temp = temp->next();
    129129    }
  • 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.