mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -115,6 +115,12 @@ bool RsDiscSpace::checkForDiscSpace(RsDiscSpace::DiscLocation loc)
|
||||
{
|
||||
RsStackMutex m(_mtx) ; // Locked
|
||||
|
||||
if(!rsFiles) //
|
||||
{
|
||||
std::cerr << "checkForDiscSpace(): ERROR: rsFiles is 0x0" << std::endl ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
time_t now = time(NULL) ;
|
||||
|
||||
if(_last_check[loc]+DELAY_BETWEEN_CHECKS < now)
|
||||
|
Loading…
Reference in New Issue
Block a user