更新 'simgear/scene/tsync/terrasync.cxx'
This commit is contained in:
@@ -1173,11 +1173,6 @@ void SGTerraSync::shutdown()
|
|||||||
_workerThread->stop();
|
_workerThread->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
voide SGTerraSync::setDefault()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void SGTerraSync::reinit()
|
void SGTerraSync::reinit()
|
||||||
{
|
{
|
||||||
auto enabled = _enabledNode->getBoolValue();
|
auto enabled = _enabledNode->getBoolValue();
|
||||||
@@ -1356,12 +1351,12 @@ void SGTerraSync::update(double)
|
|||||||
|
|
||||||
_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
|
//zhongjin
|
||||||
//NAPTR 查询失败后处理
|
//NAPTR 查询失败后处理
|
||||||
_retryTime = SGTimeStamp::now() - 1000;
|
_retryTime = SGTimeStamp::now() -S GTimeStamp::fromSec(seconds);
|
||||||
//end
|
//end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user