summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVAUTRIN Emmanuel (Canal Plus Prestataire) <Emmanuel.VAUTRIN@cpexterne.org>2021-10-01 12:18:32 +0000
committerDaniel Wagner <wagi@monom.org>2021-10-04 08:28:16 +0200
commitc07d5b11f122d2115b9f466f3106c144c315dede (patch)
treec3587d46059fa485ad10ccd1a327acee128105a7 /plugins
parentea8a6b45cc489c59a08950eae86a09e1db02e316 (diff)
downloadconnman-c07d5b11f122d2115b9f466f3106c144c315dede.tar.gz
iwd: Fix timeout error on new connection
Before connecting to a new network, the currenty connected one shall be disconnected, what always failed with "Operation timeout" error, as the disconnection seemed not completed, cm_network_disconnect returning -EINPROGRESS on success.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/iwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/iwd.c b/plugins/iwd.c
index c1c273ef..ec9a4574 100644
--- a/plugins/iwd.c
+++ b/plugins/iwd.c
@@ -317,7 +317,7 @@ static int cm_network_disconnect(struct connman_network *network)
NULL, cm_network_disconnect_cb, g_strdup(iwdn->path), g_free))
return -EIO;
- return -EINPROGRESS;
+ return 0;
}
struct auto_connect_cb_data {