mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 14:50:10 +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
This commit is contained in:
parent
2025e3585f
commit
4b4f18e77b
1 changed files with 1 additions and 1 deletions
|
|
@ -12357,7 +12357,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