mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 15:10:09 +01:00
devices/olpc: don't assert we're waiting for companion on device_added_cb()
We're hooking the signal on construction, but we only queue a pending action on reaching UNAVAILABLE state. The signal could fire in between: <info> [1539282167.9666] manager: (msh0): new 802.11 OLPC Mesh device (/org/freedesktop/NetworkManager/Devices/4) <info> [1539282168.1440] manager: (wlan0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/5) <info> [1539282168.1831] device (msh0): found companion WiFi device wlan0 <warn> [1539282168.2110] device (msh0): remove_pending_action (1): 'waiting-for-companion' not pending file src/devices/nm-device.c: line 13966 (<dropped>): should not be reached https://github.com/NetworkManager/NetworkManager/pull/229 (cherry picked from commit08225c5e96) (cherry picked from commit7e793bf3b4)
This commit is contained in:
parent
7c09527d5e
commit
391e298dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ device_added_cb (NMManager *manager, NMDevice *other, gpointer user_data)
|
|||
nm_device_queue_recheck_available (NM_DEVICE (self),
|
||||
NM_DEVICE_STATE_REASON_NONE,
|
||||
NM_DEVICE_STATE_REASON_NONE);
|
||||
nm_device_remove_pending_action (NM_DEVICE (self), NM_PENDING_ACTION_WAITING_FOR_COMPANION, TRUE);
|
||||
nm_device_remove_pending_action (NM_DEVICE (self), NM_PENDING_ACTION_WAITING_FOR_COMPANION, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue