dont run by multiple threads at the same time!

pull/36066/head
Shane Smiskol 2 weeks ago
parent 8059106cae
commit 8d883dd988
  1. 1
      system/ui/lib/wifi_manager.py

@ -370,6 +370,7 @@ class WifiManager:
cloudlog.warning(f"Failed to request scan: {reply}") cloudlog.warning(f"Failed to request scan: {reply}")
def _update_networks(self): def _update_networks(self):
with self._lock:
if self._wifi_device is None: if self._wifi_device is None:
cloudlog.warning("No WiFi device found") cloudlog.warning("No WiFi device found")
return return

Loading…
Cancel
Save