From aa4d29176f44f4fd449ca45867c4f8a12440af24 Mon Sep 17 00:00:00 2001 From: Simone Libutti Date: Wed, 12 May 2021 17:13:46 +0200 Subject: [PATCH] [gate][bugfix] Removed cancel_rpc_request invocation after reply cancel_rpc_request actually sends a nack back to thingsboard. Not be invoked after a successful response! Signed-off-by: Simone Libutti --- thingsboard_gateway/gateway/tb_gateway_service.py | 1 - 1 file changed, 1 deletion(-) diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index 5f2f7edb..9843436d 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -590,7 +590,6 @@ class TBGatewayService: device = self.__rpc_requests_in_progress[topic][0]["device"] log.info("Outgoing RPC. Device: %s, ID: %d", device, req_id) self.send_rpc_reply(device, req_id, content) - self.cancel_rpc_request(topic) def send_rpc_reply(self, device=None, req_id=None, content=None, success_sent=None, wait_for_publish=None, quality_of_service=0): try: