version 1.10, 2001/07/05 08:26:07 |
version 1.11, 2001/07/10 16:49:53 |
| |
| |
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; |
| |
{ | { |
// 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 (); |