Diff between 75e50f781b44cdd8db1911eaee1bc5b4c949f9d9 and 45df7c0fe326d6066ae43756065c1549f1c45c43

Changed Files

File Additions Deletions Status
gobex/gobex.c +3 -0 modified

Full Patch

diff --git a/gobex/gobex.c b/gobex/gobex.c
index 0665749..bc76e57 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -735,6 +735,9 @@ gboolean g_obex_cancel_req(GObex *obex, guint req_id, gboolean remove_callback)
 			goto immediate_completion;
 		}
 
+		if (remove_callback)
+			obex->pending_req->rsp_func = NULL;
+
 		return TRUE;
 	}