| 171 | |
| 172 | |
| 173 | void CClientList::UpdateClientHash( CUpDownClient* client, const CMD4Hash& newHash ) |
| 174 | { |
| 175 | // Sanity check |
| 176 | if ( ( client->GetClientState() != CS_LISTED ) || ( client->GetUserHash() == newHash ) ) |
| 177 | return; |
| 178 | |
| 179 | |
| 180 | // Remove the old entry |
| 181 | RemoveHashFromList( client ); |
| 182 | |
| 183 | // And add the new one if valid |
| 184 | if ( !newHash.IsEmpty() ) { |
| 185 | m_hashList.insert( HashMapPair( newHash, CCLIENTREF(client, "CClientList::UpdateClientHash") ) ); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | |
| 190 | bool CClientList::RemoveIDFromList( CUpDownClient* client ) |
no test coverage detected