WifiManager: always emit forgot callback (#37261)

* fixme

* fixme

* fixme
This commit is contained in:
Shane Smiskol
2026-02-19 00:12:49 -08:00
committed by GitHub
parent 612c518dd6
commit a28cc71b8b
+5 -4
View File
@@ -617,11 +617,12 @@ class WifiManager:
conn_path = self._connections.get(ssid, None)
if conn_path is None:
cloudlog.warning(f"Trying to forget unknown connection: {ssid}")
return
conn_addr = DBusAddress(conn_path, bus_name=NM, interface=NM_CONNECTION_IFACE)
self._router_main.send_and_get_reply(new_method_call(conn_addr, 'Delete'))
else:
conn_addr = DBusAddress(conn_path, bus_name=NM, interface=NM_CONNECTION_IFACE)
self._router_main.send_and_get_reply(new_method_call(conn_addr, 'Delete'))
# FIXME: race here where ConnectionRemoved signal may arrive after we update all Network is_saved
# and keep the old ssid's is_saved=True
self._update_networks()
self._enqueue_callbacks(self._forgotten, ssid)