summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-10-11 23:08:11 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-10-12 12:56:19 +0200
commit08225c5e966ccd867adc93431b3e1ccb8e776178 (patch)
treea4c3a010b6c10ecf48f2ef677c1febcfc927de4b
parent90f71c0f99b006df8135cf76ac8a44308f954450 (diff)
downloadNetworkManager-08225c5e966ccd867adc93431b3e1ccb8e776178.tar.gz
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
-rw-r--r--src/devices/wifi/nm-device-olpc-mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-olpc-mesh.c b/src/devices/wifi/nm-device-olpc-mesh.c
index b12941a61b..178cea66c7 100644
--- a/src/devices/wifi/nm-device-olpc-mesh.c
+++ b/src/devices/wifi/nm-device-olpc-mesh.c
@@ -346,7 +346,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);
}
}