summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-11-16 16:22:59 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-11-16 16:30:12 +0100
commitd0c01cc79daf62b83e52eea4d6302ddc42f1f5f0 (patch)
tree30d3ad3f6693dfbfb56a544fa07f5e79d4578547 /src
parent2837da9b306f3630fbb7db327dc848fbd1b2e5aa (diff)
downloadNetworkManager-d0c01cc79daf62b83e52eea4d6302ddc42f1f5f0.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/devices/wifi/nm-device-wifi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index 89fa49e4ff..44267125b0 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -468,7 +468,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));
@@ -476,6 +475,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));