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

Improvements

This commit is contained in:
zbeacon
2020-09-01 15:25:18 +03:00
parent 3c5e47050d
commit 737094b09a
3 changed files with 19 additions and 16 deletions

View File

@@ -407,7 +407,10 @@ class TBGatewayService:
event = self._published_events.get(False, 10)
try:
if self.tb_client.is_connected() and (self.__remote_configurator is None or not self.__remote_configurator.in_process):
success = event.get() == event.TB_ERR_SUCCESS
if self.tb_client.client.quality_of_service == 1:
success = event.get() == event.TB_ERR_SUCCESS
else:
success = True
else:
break
except Exception as e: