mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
- removed calls to rsfiles->get{Download,Partials}Directory() in RsDiscSpace class, since it would trigger a call to ftController
- added a lock into ftTransferModule::recvFileData() (Crash reported by Costa due to storing data in a deleted transfer module) - changed names of functions in ftTransferModules to locked_* when appropriate (helps debugging) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4612 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3ed0c1d885
commit
97ed1d534f
5 changed files with 75 additions and 57 deletions
|
@ -46,6 +46,8 @@ class RsDiscSpace
|
|||
static void setFreeSpaceLimit(uint32_t mega_bytes) ;
|
||||
static uint32_t freeSpaceLimit() ;
|
||||
|
||||
static void setPartialsPath(const std::string& path) ;
|
||||
static void setDownloadPath(const std::string& path) ;
|
||||
private:
|
||||
static bool crossSystemDiskStats(const char *file, uint64_t& free_blocks, uint64_t& block_size) ;
|
||||
|
||||
|
@ -55,5 +57,8 @@ class RsDiscSpace
|
|||
static uint32_t _size_limit_mb ;
|
||||
static uint32_t _current_size[3] ;
|
||||
static bool _last_res[3] ;
|
||||
|
||||
static std::string _partials_path ;
|
||||
static std::string _download_path ;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue