From 9eac0123fbcdb352b5ec82247090768249939dd6 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 13 Jan 2010 11:32:40 +0100 Subject: [PATCH] Set the connecting flag to FALSE upon connection failure When the connection really fails, connecting should be set back to FALSE. --- src/network.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index 99ee917..d11a3a5 100644 --- a/src/network.c +++ b/src/network.c @@ -873,8 +873,10 @@ int __connman_network_connect(struct connman_network *network) if (err < 0) { if (err == -EINPROGRESS) connman_network_set_associating(network, TRUE); - else + else { + network->connecting = FALSE; network->hidden = FALSE; + } return err; } -- 2.7.4