diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-28 13:31:26 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-30 11:08:33 +0200 |
commit | a67b0480a2c45b0d11e4db4142fc95fb36287dda (patch) | |
tree | 9601ac17994a947b5ba24271858479a6857ccd19 /src/agent.c | |
parent | a4d854c4ba4993df28faf8b3526204c04ac4c1e3 (diff) | |
download | bluez-a67b0480a2c45b0d11e4db4142fc95fb36287dda.tar.gz |
Revert "core: Fix unnecessary calls to agent_cancel()"
agent_cancel calls are necessary since agent_unref only call it in case
the last reference is dropped.
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c index 9ab1c8bb9..97daf71e9 100644 --- a/src/agent.c +++ b/src/agent.c @@ -350,6 +350,7 @@ static void simple_agent_reply(DBusPendingCall *call, void *user_data) if (dbus_error_has_name(&err, DBUS_ERROR_NO_REPLY)) { error("Timed out waiting for reply from agent"); + agent_cancel(agent); dbus_message_unref(message); dbus_error_free(&err); agent_unref(agent); |