diff --git a/sdk/app/services/ws_hub.py b/sdk/app/services/ws_hub.py index 146159ce67..b53286e87a 100644 --- a/sdk/app/services/ws_hub.py +++ b/sdk/app/services/ws_hub.py @@ -489,6 +489,7 @@ class WebSocketHub: try: # 发送命令 success = await self.send_to_device(device_id, command) + self.pending_commands.pop(command_id, None) if not success: return {"code": 503, "message": "发送失败"}