1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Fix for loosing the connection after dns name has not been resolved.

This commit is contained in:
zbeacon
2020-02-20 11:36:28 +02:00
parent 0ae22cbf59
commit 4eeff1f0c3

View File

@@ -115,6 +115,8 @@ class TBClient(threading.Thread):
min_reconnect_delay=self.__min_reconnect_delay)
except ConnectionRefusedError:
pass
except Exception as e:
log.exception(e)
time.sleep(1)
except Exception as e:
log.exception(e)