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:
csoler 2010-10-01 20:28:27 +00:00
parent d71dd2889d
commit 36337b5011

View File

@ -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)