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: 4cb97cf66f
(cherry picked from commit 2bfbf33720)
This commit is contained in:
Lubomir Rintel 2015-06-18 15:40:42 -04:00
parent 7f84150e9f
commit 55e402e5ac

View file

@ -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