#2258: ntp client should not request if ntp server is not set
This commit is contained in:
@@ -127,6 +127,7 @@ class NTPClient(Service):
|
||||
super().apply_timestep(timestep)
|
||||
if self.operating_state == ServiceOperatingState.RUNNING:
|
||||
# request time from server
|
||||
self.request_time()
|
||||
if self.ntp_server is not None:
|
||||
self.request_time()
|
||||
else:
|
||||
self.sys_log.debug(f"{self.name} ntp client not running")
|
||||
|
||||
Reference in New Issue
Block a user