Fix bug that was causing NTP to fail to update after the first check
This commit is contained in:
parent
82dd74add0
commit
06ca6d8981
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ namespace fc
|
|||
assert(_ntp_thread.is_current());
|
||||
if (_last_valid_ntp_reply_received_time <= fc::time_point::now() - fc::seconds(_request_interval_sec - 5))
|
||||
request_now();
|
||||
if (!_request_time_task_done.canceled())
|
||||
if (!_request_time_task_done.valid() || !_request_time_task_done.canceled())
|
||||
_request_time_task_done = schedule( [=](){ request_time_task(); },
|
||||
fc::time_point::now() + fc::seconds(_retry_failed_request_interval_sec),
|
||||
"request_time_task" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue