summaryrefslogtreecommitdiff
path: root/gobex
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-04-09 13:54:17 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-04-09 14:28:47 +0300
commit021712264c6890667d47b96c45890f5109170fe5 (patch)
treebeb80abcb37e1ef63bd44f47150d800361b5d50a /gobex
parent4899119cb29be10a78d21b8ab81f348eda38d7aa (diff)
downloadbluez-021712264c6890667d47b96c45890f5109170fe5.tar.gz
gobex: Fix asserting one more time
This fixes a regression caused by 35938b779dc8d2498e66e6a6483a36c1f99c2e19 where the current pending_req is set to NULL while processing the response but cause the request to timeout since it is no longer removed properly.
Diffstat (limited to 'gobex')
-rw-r--r--gobex/gobex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 850e288af..887e2a241 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -1113,7 +1113,7 @@ static void handle_response(GObex *obex, GError *err, GObexPacket *rsp)
p->rsp_func(obex, err, rsp, p->rsp_data);
/* Check if user callback removed the request */
- if (p != obex->pending_req)
+ if (!final_rsp && p != obex->pending_req)
return;
}