diff --git a/sys/brathuhn.py b/sys/brathuhn.py index 52f65ea..1ab52c7 100644 --- a/sys/brathuhn.py +++ b/sys/brathuhn.py @@ -276,7 +276,7 @@ def loop(): while True: try: - if reconnect or cl.connected: #TODO check if it works + if reconnect or (not cl.connected): #TODO check if it works print "--reconnect--" s=RECONNECT_INTERVAL-(time.time()-last_connect) if s>0: