From 4380326ab59a8cb88d10f1ab1b71a5053fc3184a Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 24 Nov 2022 15:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'simgear/scene/tsync/terra?= =?UTF-8?q?sync.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simgear/scene/tsync/terrasync.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 819b0e6d..a7e1cb02 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -1342,19 +1342,15 @@ void SGTerraSync::update(double) int allowedErrors = _maxErrorsNode->getIntValue(); if (worker_running && (copiedState._consecutive_errors >= allowedErrors)) { - //zhongjin - _workerThread->setHTTPServer("https://data.kongjian.xin/fgscenery","https://data.kongjian.xin/osm2city"); - //end - - enabled = false; - - //_workerThread->stop(); + _workerThread->stop(); _retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15); const int seconds = static_cast(sg_random() * _retryBackOffSeconds); - //_retryTime = SGTimeStamp::now() + SGTimeStamp::fromSec(seconds); + _retryTime = SGTimeStamp::now() + SGTimeStamp::fromSec(seconds); SG_LOG(SG_TERRASYNC, SG_ALERT, "Terrasync paused due to " << copiedState._consecutive_errors << " consecutive errors during sync; will retry in " << seconds << " seconds."); +//zhongjin +