更新 'simgear/scene/tsync/terrasync.cxx'
This commit is contained in:
parent
76575c512c
commit
64fba53506
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user