From 64fba535065d0a9d1d8a8de30b987572e47d9452 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 24 Nov 2022 15:14:12 +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 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index f5b086a8..b205aa92 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -1173,6 +1173,11 @@ void SGTerraSync::shutdown() _workerThread->stop(); } +voide SGTerraSync::setDefault() +{ + +} + void SGTerraSync::reinit() { auto enabled = _enabledNode->getBoolValue(); @@ -1341,6 +1346,12 @@ 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 + + _workerThread->stop(); _retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15); @@ -1351,9 +1362,7 @@ void SGTerraSync::update(double) //zhongjin //NAPTR 查询失败后处理 _retryTime = SGTimeStamp::now() - 1000; - - _osmCityServer= "https://data.kongjian.xin/osm2city"; - _httpServer = "https://data.kongjian.xin/fgscenery"; + //end