fixed bug asking data to deleted mTransfer

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4677 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-11-18 08:49:53 +00:00
parent 1fd107a491
commit 107f64c23f

View File

@ -1575,8 +1575,8 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info)
info.hash = hash;
info.fname = it->second->mName;
info.flags = it->second->mFlags;
info.priority = SPEED_NORMAL ;
info.path = RsDirUtil::removeTopDir(it->second->mDestination); /* remove fname */
info.priority = it->second->mTransfer->downloadPriority() ;
info.queue_position = it->second->mQueuePosition ;
/* get list of sources from transferModule */
@ -1584,7 +1584,10 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info)
std::list<std::string>::iterator pit;
if (!completed)
{
it->second->mTransfer->getFileSources(peerIds);
info.priority = it->second->mTransfer->downloadPriority() ;
}
double totalRate = 0;
uint32_t tfRate = 0;