diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-05 15:00:54 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-05 15:00:54 +0000 |
commit | a2ace90c14ede86b8179a930fb104de4aca93849 (patch) | |
tree | 38dd359fa3c8d41eed81accf072eaabff2277212 /network/manager.c | |
parent | 7a2733b957f458e8bc4d33a37f3d60aa05af67fd (diff) |
Fix bug while disconnecting.
Diffstat (limited to 'network/manager.c')
-rw-r--r-- | network/manager.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |