From 47669104138990c1e35907b5a2119e2dca002aae Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 17 Oct 2013 17:29:06 +0100 Subject: [PATCH] Terraysnc: don't block requests when inactive. Add the same check for data files so we don't block when terrasync is disabled. --- simgear/scene/tsync/terrasync.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 5765f481..38cd0c96 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -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()); }