更新 'simgear/scene/tsync/terrasync.cxx'

This commit is contained in:
zhongjin 2022-11-24 15:14:12 +08:00
parent 76575c512c
commit 64fba53506

View File

@ -1173,6 +1173,11 @@ void SGTerraSync::shutdown()
_workerThread->stop(); _workerThread->stop();
} }
voide SGTerraSync::setDefault()
{
}
void SGTerraSync::reinit() void SGTerraSync::reinit()
{ {
auto enabled = _enabledNode->getBoolValue(); auto enabled = _enabledNode->getBoolValue();
@ -1341,6 +1346,12 @@ void SGTerraSync::update(double)
int allowedErrors = _maxErrorsNode->getIntValue(); int allowedErrors = _maxErrorsNode->getIntValue();
if (worker_running && (copiedState._consecutive_errors >= allowedErrors)) { if (worker_running && (copiedState._consecutive_errors >= allowedErrors)) {
//zhongjin
_workerThread->setHTTPServer("https://data.kongjian.xin/fgscenery","https://data.kongjian.xin/osm2city");
//end
_workerThread->stop(); _workerThread->stop();
_retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15); _retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15);
@ -1351,9 +1362,7 @@ void SGTerraSync::update(double)
//zhongjin //zhongjin
//NAPTR 查询失败后处理 //NAPTR 查询失败后处理
_retryTime = SGTimeStamp::now() - 1000; _retryTime = SGTimeStamp::now() - 1000;
//end
_osmCityServer= "https://data.kongjian.xin/osm2city";
_httpServer = "https://data.kongjian.xin/fgscenery";