Commit 35059ed4 authored by Beniamino Galvani's avatar Beniamino Galvani Committed by Thomas Haller
Browse files

device: allow NM-owned device to be assumed

Software devices created by NM should be kept up when quitting so that
they can be assumed upon restart. But now we consider devices created
by NM (those with the @is_nm_owned flag) not capable of assuming
connections and therefore we tear them down and deconfigure when

Change this and ignore @is_nm_owned when deciding if a device can be
parent e1edcda3
......@@ -3066,8 +3066,7 @@ nm_device_check_slave_connection_compatible (NMDevice *self, NMConnection *slave
static gboolean
nm_device_can_assume_connections (NMDevice *self)
return !!NM_DEVICE_GET_CLASS (self)->update_connection
&& !NM_DEVICE_GET_PRIVATE (self)->is_nm_owned;
return !!NM_DEVICE_GET_CLASS (self)->update_connection;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment