mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 13:00:12 +01:00
device: check for disconnected state before activating NMActRequest
When a new activation request comes and the device is currently
activated, we move the device state to 'deactivating' and wait that it
reaches 'disconnected' before starting the new activation request.
In the meantime, a carrier change could happen but still we have to
wait that device finishes any pending deactivation.
https://bugzilla.redhat.com/show_bug.cgi?id=1772960
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/339
(cherry picked from commit 4b4f18e77b)
This commit is contained in:
parent
b366234a3a
commit
5a8ea69209
1 changed files with 1 additions and 1 deletions
|
|
@ -12187,7 +12187,7 @@ _carrier_wait_check_queued_act_request (NMDevice *self)
|
|||
_LOGD (LOGD_DEVICE, "Cancel queued activation request as we have no carrier after timeout");
|
||||
_clear_queued_act_request (priv,
|
||||
NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED);
|
||||
} else {
|
||||
} else if (priv->state == NM_DEVICE_STATE_DISCONNECTED) {
|
||||
gs_unref_object NMActRequest *queued_req = NULL;
|
||||
|
||||
_LOGD (LOGD_DEVICE, "Activate queued activation request as we now have carrier");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue