Don't mark client as online unless it's also enabled

This commit is contained in:
Lance Edgar 2018-10-23 17:38:38 -05:00
parent 30f0fe0a84
commit b644818eef

View file

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