mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
1fd107a491
commit
107f64c23f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user