]> git.mxchange.org Git - simgear.git/commitdiff
Terraysnc: don't block requests when inactive.
authorJames Turner <zakalawe@mac.com>
Thu, 17 Oct 2013 16:29:06 +0000 (17:29 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 17 Oct 2013 16:29:06 +0000 (17:29 +0100)
Add the same check for data files so we don't block when terrasync is
disabled.

simgear/scene/tsync/terrasync.cxx

index 5765f481ba3863f9c813872458dda725f5dea4db..38cd0c96d0d0c4d303458c33374fc97472d72369 100644 (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());
 }