mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fixed bug introduced in 6910, due to calling member on deleted mCreator
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6914 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dda9d4eca5
commit
01588f6f53
2 changed files with 21 additions and 6 deletions
|
@ -1685,7 +1685,6 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info)
|
|||
/* extract details */
|
||||
info.hash = hash;
|
||||
info.fname = it->second->mName;
|
||||
info.lastTS = it->second->mCreator->lastRecvTimeStamp();
|
||||
info.storage_permission_flags.clear() ;
|
||||
info.transfer_info_flags = it->second->mFlags ;
|
||||
info.priority = SPEED_NORMAL ;
|
||||
|
@ -1703,7 +1702,10 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info)
|
|||
{
|
||||
it->second->mTransfer->getFileSources(peerIds);
|
||||
info.priority = it->second->mTransfer->downloadPriority() ;
|
||||
info.lastTS = it->second->mCreator->lastRecvTimeStamp();
|
||||
}
|
||||
else
|
||||
info.lastTS = 0;
|
||||
|
||||
double totalRate = 0;
|
||||
uint32_t tfRate = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue