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: if client.enabled:
for probe in client.enabled_probes(): for probe in client.enabled_probes():
self.take_reading(session, probe) self.take_reading(session, probe)
session.flush() session.flush()
# one more thing, make sure our client appears "online" # one more thing, make sure our client appears "online"
if not client.online: if not client.online:
client.online = True client.online = True
except Exception as error: except Exception as error:
log_error = True log_error = True