rambo 4 mesi fa
parent
commit
9a069c595c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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: