mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
put a warnign and check in rsdiscspace when rsFiles is null
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3583 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d71dd2889d
commit
36337b5011
1 changed files with 6 additions and 0 deletions
|
@ -115,6 +115,12 @@ bool RsDiscSpace::checkForDiscSpace(RsDiscSpace::DiscLocation loc)
|
||||||
{
|
{
|
||||||
RsStackMutex m(_mtx) ; // Locked
|
RsStackMutex m(_mtx) ; // Locked
|
||||||
|
|
||||||
|
if(!rsFiles) //
|
||||||
|
{
|
||||||
|
std::cerr << "checkForDiscSpace(): ERROR: rsFiles is 0x0" << std::endl ;
|
||||||
|
return true ;
|
||||||
|
}
|
||||||
|
|
||||||
time_t now = time(NULL) ;
|
time_t now = time(NULL) ;
|
||||||
|
|
||||||
if(_last_check[loc]+DELAY_BETWEEN_CHECKS < now)
|
if(_last_check[loc]+DELAY_BETWEEN_CHECKS < now)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue