From 021712264c6890667d47b96c45890f5109170fe5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 9 Apr 2014 13:54:17 +0300 Subject: [PATCH] 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. --- gobex/gobex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3