DownloadClient.cpp
search :
#include "Log.h"
add under:
#include "UploadQueue.h"
serach:
AddDebugLogLine(DLP_LOW, false, _T("UDP FNF-Answer: %s - %s"),DbgGetClientInfo(), DbgGetFileInfo(reqfile ? reqfile->GetFileHash() : NULL));
add under:
if(reqfile && GetUploadState()!=US_NONE)
{
CKnownFile* upfile = theApp.sharedfiles->GetFileByID(GetUploadFileID());
if(upfile && upfile == reqfile) //we speak about the same file
{
AddLogLine(false,_T("Dropped src: (%s) does not seem to have own reqfile!"), DbgGetClientInfo());
theApp.uploadqueue->RemoveFromUploadQueue(this, _T("Src says he does not have the file he's dl'ing"));
theApp.uploadqueue->RemoveFromWaitingQueue(this);
}
}
0 comments:
发表评论