diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-02 18:39:38 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-10 14:40:24 +0100 |
commit | e4a9942ba8a24744d043ec0b9dece3d347b0fc64 (patch) | |
tree | e8109230412c9e3358baf335ae3907b091440867 | |
parent | 4e84472b471cf82baea3cf3f61562575928f0e0c (diff) | |
download | NetworkManager-e4a9942ba8a24744d043ec0b9dece3d347b0fc64.tar.gz |
device/wifi: don't reschedule idle handler for schedule_ap_list_dump()
-rw-r--r-- | src/devices/wifi/nm-device-wifi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 4c36fdc6ef..7c969d4987 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -1594,8 +1594,8 @@ schedule_ap_list_dump (NMDeviceWifi *self) { NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self); - nm_clear_g_source (&priv->ap_dump_id); - if (_LOGD_ENABLED (LOGD_WIFI_SCAN)) + if ( !priv->ap_dump_id + && _LOGD_ENABLED (LOGD_WIFI_SCAN)) priv->ap_dump_id = g_timeout_add_seconds (1, ap_list_dump, self); } |