mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 21:20:20 +01:00
wifi: notify the AccessPoint change after an AP is removed
Otherwise its path remains visible on D-Bus despite the object is gone,
making libnm sad and grumpy:
libnm-WARNING **: no object known for /org/freedesktop/NetworkManager/AccessPoint/666
(cherry picked from commit d0c01cc79d)
This commit is contained in:
parent
ad4d3ba008
commit
676d16293f
1 changed files with 2 additions and 1 deletions
|
|
@ -478,7 +478,6 @@ ap_add_remove (NMDeviceWifi *self,
|
|||
}
|
||||
|
||||
g_signal_emit (self, signals[signum], 0, ap);
|
||||
_notify (self, PROP_ACCESS_POINTS);
|
||||
|
||||
if (signum == ACCESS_POINT_REMOVED) {
|
||||
g_hash_table_remove (priv->aps, nm_exported_object_get_path ((NMExportedObject *) ap));
|
||||
|
|
@ -486,6 +485,8 @@ ap_add_remove (NMDeviceWifi *self,
|
|||
g_object_unref (ap);
|
||||
}
|
||||
|
||||
_notify (self, PROP_ACCESS_POINTS);
|
||||
|
||||
nm_device_emit_recheck_auto_activate (NM_DEVICE (self));
|
||||
if (recheck_available_connections)
|
||||
nm_device_recheck_available_connections (NM_DEVICE (self));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue