diff options
-rw-r--r-- | plugins/wifi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 2984de0e..631d0cc3 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -516,7 +516,10 @@ static void scan_callback(int result, GSupplicantInterface *interface, connman_device_reset_scanning(device); connman_device_set_scanning(device, FALSE); - start_autoscan(device); + + if (result != -ENOLINK) + start_autoscan(device); + connman_device_unref(device); } |