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

Improvents for storage - if broken line found in storage, it will be ignored.

This commit is contained in:
zbeacon
2019-12-11 16:46:46 +02:00
parent 4ffcf4f015
commit dada6430bb
2 changed files with 10 additions and 4 deletions

View File

@@ -208,8 +208,8 @@ class TBGatewayService:
self.__published_events.append(self.tb_client.client.gw_send_attributes(current_event["deviceName"],
filtered_attributes))
success = True
for event in range(len(self.__published_events)):
success = self.__published_events[event].get() == self.__published_events[event].TB_ERR_SUCCESS
for event in self.__published_events:
success = event.get() == event.TB_ERR_SUCCESS
if success:
self.__event_storage.event_pack_processing_done()
except Exception as e: