Disable timeout for 0 value

This commit is contained in:
Cort Buffington 2019-03-20 09:08:12 -05:00
parent 69f965ebf7
commit cbb90b6b6f

View File

@ -660,8 +660,9 @@ if __name__ == '__main__':
update_stats.start(FREQUENCY) update_stats.start(FREQUENCY)
# Start a timout loop # Start a timout loop
timeout = task.LoopingCall(timeout_clients) if CLIENT_TIMEOUT > 0:
timeout.start(10) timeout = task.LoopingCall(timeout_clients)
timeout.start(10)
# Connect to HBlink # Connect to HBlink
reactor.connectTCP(HBLINK_IP, HBLINK_PORT, reportClientFactory()) reactor.connectTCP(HBLINK_IP, HBLINK_PORT, reportClientFactory())