Pārlūkot izejas kodu

temp_ports_dict

rambo 4 mēneši atpakaļ
vecāks
revīzija
9a069c595c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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: