1
Vote

nClientsCount-- to "-1" (PushFramework2.2)

description

void ClientFactoryImpl::scrutinize()
{
    ScopedLock csLock(cs);

    clientMapT::iterator it = clientMap.begin();
    while (it!=clientMap.end())
    {
        LogicalConnection* pClient = it->second;
        if (pClient->IsInactive())
        {
            nClientsCount--;
...
here nClientsCount-- to 0. Go on....
bool ClientFactoryImpl::removeIfExisting( LogicalConnection* pLogicalConnection )
{
    ScopedLock csLock(cs);

    clientMapT::iterator it = clientMap.find(pLogicalConnection->getKey());
    if (it == clientMap.end())
    {
        return false;
    }
    nClientsCount--;

    clientMap.erase(it);
    return true;
}
here nClientsCount-- to -1(0xffffffff).

comments