Browse Source

temp_ports_dict

rambo 4 months ago
parent
commit
9a069c595c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      python/sockets/socket_server.py

+ 2 - 0
python/sockets/socket_server.py

@@ -27,6 +27,8 @@ async def websocket_endpoint(websocket: WebSocket):
                     if socket_type == "websocket.disconnect":
                         device_ctrl.close_connect()
                         device_ctrl.mcu_exit = True
+                        device_ctrl.p_list = []
+                        device_ctrl.temp_ports_dict = {}
                         device_ctrl.clearMyInstance()
                         diviceList = blue_tooth.devices
                         if len(diviceList) == 0: