device: always do a unrealized delete check when rechecking available connections
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 15 Feb 2016 20:14:22 +0000 (21:14 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Mon, 15 Feb 2016 20:32:49 +0000 (21:32 +0100)
It could be that what changed is the unrealize flag, not the number available
connections. That could happen when a last connection for a software device
is removed.

src/devices/nm-device.c

index cbcb2c7..ef67230 100644 (file)
@@ -9378,10 +9378,9 @@ nm_device_recheck_available_connections (NMDevice *self)
                        changed = TRUE;
        }
 
-       if (changed) {
+       if (changed)
                available_connections_notify (self);
-               available_connections_check_delete_unrealized (self);
-       }
+       available_connections_check_delete_unrealized (self);
 }
 
 /**