#2258: ntp client should not request if ntp server is not set

This commit is contained in:
Czar Echavez
2024-02-08 16:21:08 +00:00
parent e1237625a5
commit 0590f956e3

View File

@@ -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")