From 43c4a45c4d0386d7514236c5b7ce5eba07b2bdc9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 13 May 2013 10:57:38 -0400 Subject: [PATCH] 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. --- src/devices/nm-device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 02c44474a8..6373c50778 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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); }