From 55e402e5acf524697bb3452f361a8279bb10db8b Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 18 Jun 2015 15:40:42 -0400 Subject: [PATCH] manager: use proper reason when stealing a connection The user-requested reason is not really appropriate and blocks autoreconnect. We added a new reason precisely for that. Fixes: 4cb97cf66f175857a1910ee926ea61dc507c08e8 (cherry picked from commit 2bfbf33720b792c9679719d904f4b82a7896202c) --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 5f7f4f0446..aab14708bc 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -5944,7 +5944,7 @@ nm_device_steal_connection (NMDevice *self, NMConnection *connection) && priv->state < NM_DEVICE_STATE_DEACTIVATING) nm_device_state_changed (self, NM_DEVICE_STATE_DEACTIVATING, - NM_DEVICE_STATE_REASON_USER_REQUESTED); + NM_DEVICE_STATE_REASON_NEW_ACTIVATION); } void