Terraysnc: don't block requests when inactive.

Add the same check for data files so we don't block when terrasync is
disabled.
This commit is contained in:
James Turner 2013-10-17 17:29:06 +01:00
parent 3c2f97a8d2
commit 4766910413

View File

@ -1086,5 +1086,9 @@ void SGTerraSync::scheduleDataDir(const std::string& dataDir)
bool SGTerraSync::isDataDirPending(const std::string& dataDir) const
{
if (!_svnThread->_running) {
return false;
}
return (_activeTileDirs.find(dataDir) != _activeTileDirs.end());
}