diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-04 14:30:57 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-04 14:30:57 +0200 |
commit | 06ab0b13c99b0edc5f4633187a78a5c449127f6f (patch) | |
tree | ce43b970398d1755ac4a411f88b199094636a956 | |
parent | b799de281bc01073c31dd2c86171b29c8132441c (diff) | |
download | NetworkManager-bg/unrealize-fail-notify.tar.gz |
device: thaw notify in unrealize error pathbg/unrealize-fail-notify
-rw-r--r-- | src/devices/nm-device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index cf73ee016a..5cb1020b74 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3441,8 +3441,10 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error) if (remove_resources) { if (NM_DEVICE_GET_CLASS (self)->unrealize) { - if (!NM_DEVICE_GET_CLASS (self)->unrealize (self, error)) + if (!NM_DEVICE_GET_CLASS (self)->unrealize (self, error)) { + g_object_thaw_notify (G_OBJECT (self)); return FALSE; + } } else if (ifindex > 0) { nm_platform_link_delete (nm_device_get_platform (self), ifindex); } |