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

Fix for unintialized gateway main loop messages processing

This commit is contained in:
imbeacon
2024-08-17 20:09:05 +03:00
parent 33b8ca2b56
commit b89c4b97e2

View File

@@ -1038,7 +1038,7 @@ class TBGatewayService:
data["deviceName"] = "currentThingsBoardGateway"
data['deviceType'] = "gateway"
if self.__check_devices_idle:
if hasattr(self, "__check_devices_idle") and self.__check_devices_idle:
self.__connected_devices[data['deviceName']]['last_receiving_data'] = time()
data = self.__convert_telemetry_to_ts(data)