device: use "new-activation" reason when deactivating for another activation

"user-requested" has a side effect of disabling autoconnect.

Fixes: 600489003f
This commit is contained in:
Lubomir Rintel 2015-02-17 10:40:18 +01:00
parent 1ad193a017
commit d78f4614a0

View file

@ -5956,7 +5956,7 @@ nm_device_queue_activation (NMDevice *self, NMActRequest *req)
_LOGI (LOGD_DEVICE, "disconnecting for new activation request.");
nm_device_state_changed (self,
NM_DEVICE_STATE_DEACTIVATING,
NM_DEVICE_STATE_REASON_USER_REQUESTED);
NM_DEVICE_STATE_REASON_NEW_ACTIVATION);
}
}