From a2ace90c14ede86b8179a930fb104de4aca93849 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 5 Apr 2007 15:00:54 +0000 Subject: Fix bug while disconnecting. --- network/manager.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'network/manager.c') diff --git a/network/manager.c b/network/manager.c index ace1f602..1cbb9c70 100644 --- a/network/manager.c +++ b/network/manager.c @@ -414,9 +414,11 @@ static void default_adapter_reply(DBusPendingCall *call, void *data) pr->adapter_path = g_strdup(adapter); - if (pr->id == BNEP_SVC_PANU && (get_handles(pr, pan_handle_reply) < 0)) { - err_failed(pr->conn, pr->msg, "D-Bus path registration failed"); - goto fail; + if (pr->addr) { + if (get_handles(pr, pan_handle_reply) < 0) { + err_failed(pr->conn, pr->msg, "D-Bus path registration failed"); + goto fail; + } } else if (get_address(pr, get_address_reply) < 0) { err_failed(pr->conn, pr->msg, "D-Bus path registration failed"); goto fail; -- cgit