Diff between 6df190c813b5a989c98385ea999247af1ba64a53 and c0ad77f7e8cfb9bbc93c13a569e756b1ea3daa20
Changed Files
| File | Additions | Deletions | Status |
| obexd/client/agent.c | +2 | -1 | modified |
Full Patch
diff --git a/obexd/client/agent.c b/obexd/client/agent.c
index aa93db3..929a05f 100644
--- a/obexd/client/agent.c
+++ b/obexd/client/agent.c
@@ -114,11 +114,12 @@ static void agent_request_reply(DBusPendingCall *call, void *user_data)
struct obc_agent *agent = user_data;
struct pending_request *req = agent->pending;
+ agent->pending = NULL;
+
if (req->function)
req->function(call, req->data);
pending_request_free(req);
- agent->pending = NULL;
}
int obc_agent_request(struct obc_agent *agent, const char *path,