devices: fix a bug in activation logic

It *is* legitimate to (re-)activate a connection on an already-active
device, so remove the newly-added "sanity check" preventing that.
Pointed out by jklimes.
This commit is contained in:
Dan Winship 2013-05-13 10:57:38 -04:00
parent f5c29c9694
commit 43c4a45c4d

View file

@ -1353,9 +1353,6 @@ nm_device_can_activate (NMDevice *self)
if (!priv->default_unmanaged && priv->state < NM_DEVICE_STATE_DISCONNECTED)
return FALSE;
if (priv->state > NM_DEVICE_STATE_DISCONNECTED)
return FALSE;
return nm_device_is_available (self);
}