From ac93ba0e4465b248ffbb9c23a1582d52f69edda1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 1 Apr 2014 10:33:25 +0300 Subject: gobex: Fix asserting when resending connect request In case connect requests needs to be resent to authenticate the timeout handle should be removed otherwise it may end up asserting: ERROR:gobex/gobex.c:251:req_timeout: assertion failed: (p != NULL) --- gobex/gobex.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gobex') diff --git a/gobex/gobex.c b/gobex/gobex.c index 880ed9159..4185ed17c 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -1016,6 +1016,8 @@ static void auth_challenge(GObex *obex) /* Remove it as pending and add it back to the queue so it gets sent * again */ + g_source_remove(p->timeout); + p->timeout_id = 0; obex->pending_req = NULL; g_obex_send_internal(obex, p, NULL); } -- cgit v1.2.1