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

This commit is contained in:
zhongjin 2022-11-24 15:35:54 +08:00
parent 6ebe2f23c1
commit febafabff8

View File

@ -1343,22 +1343,20 @@ void SGTerraSync::update(double)
if (worker_running && (copiedState._consecutive_errors >= allowedErrors)) { if (worker_running && (copiedState._consecutive_errors >= allowedErrors)) {
//zhongjin //zhongjin
// _workerThread->setHTTPServer("https://data.kongjian.xin/fgscenery","https://data.kongjian.xin/osm2city"); _workerThread->setHTTPServer("https://data.kongjian.xin/fgscenery","https://data.kongjian.xin/osm2city");
//end //end
enabled = false; enabled = false;
_workerThread->stop(); _stop = true;
//_workerThread->stop();
_retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15); _retryBackOffSeconds = std::min(_retryBackOffSeconds + 60, 60u * 15);
const int seconds = static_cast<int>(sg_random() * _retryBackOffSeconds); const int seconds = static_cast<int>(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."); SG_LOG(SG_TERRASYNC, SG_ALERT, "Terrasync paused due to " << copiedState._consecutive_errors << " consecutive errors during sync; will retry in " << seconds << " seconds.");
//zhongjin
//NAPTR 查询失败后处理
//_retryTime = SGTimeStamp::now() - SGTimeStamp::fromSec(seconds);
//end