diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-20 22:05:20 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-20 22:05:20 +0000 |
commit | 1a39736bb121a1aa744ab0e0e1989e1849e8783a (patch) | |
tree | eee79dfb072da14fc9359cdb2ce848e1bd8b1039 /hcid/adapter.c | |
parent | 74fdac28eafca963c8081ea39dcf057459cf491a (diff) |
Fixed wrong report of create device in progress error
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r-- | hcid/adapter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index fc1608d5..6bfc653a 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -2180,7 +2180,6 @@ static void create_device_req_free(struct create_device_req *create) dbus_message_unref(create->msg); g_free(create->agent_path); g_free(create); - create = NULL; } struct device *adapter_get_device(struct adapter *adapter, const char *dest) @@ -2332,6 +2331,7 @@ cleanup: if (adapter->create) { name_listener_id_remove(adapter->create->id); create_device_req_free(adapter->create); + adapter->create = NULL; } return FALSE; @@ -3552,6 +3552,7 @@ static DBusHandlerResult list_devices(DBusConnection *conn, static void create_device_exit(const char *name, struct adapter *adapter) { create_device_req_free(adapter->create); + adapter->create = NULL; } static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err) @@ -3643,6 +3644,7 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err) failed: name_listener_id_remove(adapter->create->id); create_device_req_free(adapter->create); + adapter->create = NULL; } static DBusHandlerResult discover_services(DBusConnection *conn, |