From 2292cb63bf6213f85b30071a2929e853e6640da6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 14 Jan 2016 17:24:25 +0100 Subject: [PATCH] core: always unrealize software devices when platform link disappears We possibly need the unrealized device for connections that need this. nm_device_unrealize() will check if there are still any available-connections and possibly emit DEVICE_REMOVED signal. Fixes: 7e5f27a21ca22d986755e4cc480e85d8a51ff17d --- src/nm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index de0a5afeb9..455691d50c 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -2088,7 +2088,7 @@ _platform_link_cb_idle (PlatformLinkCbData *data) device = nm_manager_get_device_by_ifindex (self, data->ifindex); if (device) { - if (nm_device_is_software (device) && nm_device_get_is_nm_owned (device)) { + if (nm_device_is_software (device)) { /* Our software devices stick around until their connection is removed */ if (!nm_device_unrealize (device, FALSE, &error)) { nm_log_warn (LOGD_DEVICE, "(%s): failed to unrealize: %s",