mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
device: use correct active-connection's state-change reason in nm_device_disconnect_active_connection()
It just makes more sense, to let the caller decide on the reason.
This commit is contained in:
parent
8f36019731
commit
71a090c920
1 changed files with 1 additions and 2 deletions
|
|
@ -11847,8 +11847,7 @@ nm_device_disconnect_active_connection (NMActiveConnection *active,
|
|||
priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
|
||||
if (NM_ACTIVE_CONNECTION (priv->queued_act_request) == active) {
|
||||
_clear_queued_act_request (priv,
|
||||
NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED);
|
||||
_clear_queued_act_request (priv, active_reason);
|
||||
return;
|
||||
}
|
||||
if (NM_ACTIVE_CONNECTION (priv->act_request.obj) == active) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue