diff options
author | VAUTRIN Emmanuel (Canal Plus Prestataire) <Emmanuel.VAUTRIN@cpexterne.org> | 2021-10-01 12:18:32 +0000 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2021-10-04 08:28:16 +0200 |
commit | c07d5b11f122d2115b9f466f3106c144c315dede (patch) | |
tree | c3587d46059fa485ad10ccd1a327acee128105a7 /plugins | |
parent | ea8a6b45cc489c59a08950eae86a09e1db02e316 (diff) | |
download | connman-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.c | 2 |
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 { |