mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
device: clear priv->queued_act_request before setting state
Setting the state of NMActiveConnection results in invoking callbacks in NMManager. Hence, it might be far-reaching. Clear priv->queued_act_request before invoking the callbacks.
This commit is contained in:
parent
edc4dd5167
commit
ecf3677e57
1 changed files with 4 additions and 2 deletions
|
|
@ -10071,10 +10071,12 @@ static void
|
|||
_clear_queued_act_request (NMDevicePrivate *priv)
|
||||
{
|
||||
if (priv->queued_act_request) {
|
||||
nm_active_connection_set_state_fail ((NMActiveConnection *) priv->queued_act_request,
|
||||
gs_unref_object NMActRequest *ac = NULL;
|
||||
|
||||
ac = g_steal_pointer (&priv->queued_act_request);
|
||||
nm_active_connection_set_state_fail ((NMActiveConnection *) ac,
|
||||
NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED,
|
||||
NULL);
|
||||
g_clear_object (&priv->queued_act_request);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue