summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2010-04-28 18:25:45 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-05-06 07:35:10 +0200
commit77887dd7e433a41112fa77fa560f48e52489fe6e (patch)
tree89ae365246bfec9a67d425aa71c0896d46b811c3 /plugins/bluetooth.c
parentb4edf97ceebc5d6b2c792351180ffb7286f279b3 (diff)
downloadconnman-77887dd7e433a41112fa77fa560f48e52489fe6e.tar.gz
connman-77887dd7e433a41112fa77fa560f48e52489fe6e.tar.bz2
connman-77887dd7e433a41112fa77fa560f48e52489fe6e.zip
Set network associating to FALSE in pan_disconnect()
Otherwise, connman_network_set_connected() takes normal service disconnect as connecting failure.
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index fabc75f7..4533d7af 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -237,6 +237,8 @@ static int pan_disconnect(struct connman_network *network)
connman_network_ref(network);
+ connman_network_set_associating(network, FALSE);
+
dbus_pending_call_set_notify(call, disconnect_reply, network, NULL);
dbus_message_unref(message);