Don't mark client as online unless it's also enabled
This commit is contained in:
parent
30f0fe0a84
commit
b644818eef
|
@ -91,11 +91,11 @@ class TempmonClient(Daemon):
|
|||
if client.enabled:
|
||||
for probe in client.enabled_probes():
|
||||
self.take_reading(session, probe)
|
||||
session.flush()
|
||||
session.flush()
|
||||
|
||||
# one more thing, make sure our client appears "online"
|
||||
if not client.online:
|
||||
client.online = True
|
||||
# one more thing, make sure our client appears "online"
|
||||
if not client.online:
|
||||
client.online = True
|
||||
|
||||
except Exception as error:
|
||||
log_error = True
|
||||
|
|
Loading…
Reference in a new issue