void CAICHRecoveryHashSet::ClientAICHRequestFailed(CUpDownClient* pClient){ pClient->SetReqFileAICHHash(NULL); CAICHRequestedData data = GetAICHReqDetails(pClient); RemoveClientAICHRequest(pClient); if (data.m_pClient != pClient) return; if(theApp.downloadqueue->IsPartFile(data.m_pPartFile)){ theApp.QueueDebugLogLine(false, _T("AICH Request failed, Trying to ask another client (file %s, Part: %u, Client%s)"), data.m_pPartFile->GetFileName(), data.m_nPart, pClient->DbgGetClientInfo()); data.m_pPartFile->RequestAICHRecovery(data.m_nPart); } }
void CAICHHashSet::ClientAICHRequestFailed(CUpDownClient* pClient) { pClient->SetReqFileAICHHash(NULL); CAICHRequestedData data = GetAICHReqDetails(pClient); RemoveClientAICHRequest(pClient); if (data.m_pClient != pClient) { return; } if( theApp->downloadqueue->IsPartFile(data.m_pPartFile)) { AddDebugLogLineM(false, logSHAHashSet, CFormat(wxT("AICH Request failed, Trying to ask another client (File: '%s', Part: %u, Client '%s'")) % data.m_pPartFile->GetFileName() % data.m_nPart % pClient->GetClientFullInfo()); data.m_pPartFile->RequestAICHRecovery(data.m_nPart); } }