mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
Fix for initial connection to TB if TB is down on start
This commit is contained in:
@@ -287,7 +287,7 @@ class TBClient(threading.Thread):
|
||||
break
|
||||
self.__logger.debug("connecting to ThingsBoard")
|
||||
try:
|
||||
if time() - previous_connection_time < min_reconnect_delay:
|
||||
if time() - previous_connection_time > min_reconnect_delay:
|
||||
self.client.connect(keepalive=keep_alive,
|
||||
min_reconnect_delay=self.__min_reconnect_delay)
|
||||
previous_connection_time = time()
|
||||
|
||||
Reference in New Issue
Block a user