[BACK] Return to admin_service.cpp CVS log [TXT][DIR] Up to Nevrax / code / nelns / admin_service

Diff for /code/nelns/admin_service/admin_service.cpp between version 1.10 and 1.11

version 1.10, 2001/07/05 08:26:07 version 1.11, 2001/07/10 16:49:53
Line 514 
Line 514 
  
         nlinfo ("*:%d:%d disconnected", aes->Id, sid);         nlinfo ("*:%d:%d disconnected", aes->Id, sid);
  
         SIT sit = aes->findService(sid);         SIT sit = aes->findService(sid, false);
  
         // broadcast the message to all admin client         // broadcast the message to all admin client
         CMessage msgout (CNetManager::getSIDA ("AS"), "SD");         CMessage msgout (CNetManager::getSIDA ("AS"), "SD");
         msgout.serial (aes->Id, (*sit).Id);         msgout.serial (aes->Id, sid);
         CNetManager::send ("AS", msgout, 0);         CNetManager::send ("AS", msgout, 0);
  
          // the service could disconnect before it's identification, in this case, we don't have it in the service list
          if (sit != aes->Services.end ())
          {
         if ((*sit).InConfig)         if ((*sit).InConfig)
         {         {
                 (*sit).Ready = (*sit).Connected = false;                 (*sit).Ready = (*sit).Connected = false;
Line 532 
Line 535 
         {         {
                 // erase only if it's not a service in the config                 // erase only if it's not a service in the config
                 aes->Services.erase (sit);                 aes->Services.erase (sit);
                  }
         }         }
  
         displayServices ();         displayServices ();


Legend:
Removed from v.1.10 
changed lines
 Added in v.1.11