mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 02:10:28 +01:00
wifi: remove supplicant pending action if supplicant init fails
If the supplicant interface object never successfully initialized, remove the pending action to prevent warnings about "pending action already added" when supplicant_interface_acquire() adds the pending action again.
This commit is contained in:
parent
085bc0876c
commit
7be2627b69
1 changed files with 3 additions and 0 deletions
|
|
@ -2336,6 +2336,9 @@ supplicant_iface_state_cb (NMSupplicantInterface *iface,
|
|||
case NM_SUPPLICANT_INTERFACE_STATE_DOWN:
|
||||
cleanup_association_attempt (self, FALSE);
|
||||
|
||||
if (old_state < NM_SUPPLICANT_INTERFACE_STATE_READY)
|
||||
nm_device_remove_pending_action (device, "waiting for supplicant", TRUE);
|
||||
|
||||
/* If the device is already in UNAVAILABLE state then the state change
|
||||
* is a NOP and the interface won't be re-acquired in the device state
|
||||
* change handler. So ensure we have a new one here so that we're
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue