From da3fb62a57132e0048317d816a18d5a112701ee8 Mon Sep 17 00:00:00 2001 From: wu zheng Date: Sun, 30 Nov 2014 16:57:55 +0800 Subject: [PATCH] Fix the issue that push callback can't be callbacked The condition of cmp is error. It results in the issue. The condition has been modified. Change-Id: Ied976a15de30d58485db35197a28297299b2210a Signed-off-by: Wu Zheng --- capi/bluetooth-obex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capi/bluetooth-obex.c b/capi/bluetooth-obex.c index 7649417..7269d42 100644 --- a/capi/bluetooth-obex.c +++ b/capi/bluetooth-obex.c @@ -792,7 +792,8 @@ static void bt_opp_client_transfer_state_cb(unsigned int id, DBG("+"); if (state == BT_OPP_TRANSFER_QUEUED) { - if (id == 0 && g_strcmp0(name, "OBEX_TRANSFER_QUEUED")) { + DBG("id = %d, name = %s", id, name); + if (id == 0 && !g_strcmp0(name, "OBEX_TRANSFER_QUEUED")) { if (bt_push_responded_cb) bt_push_responded_cb(BT_ERROR_NONE, address, user_data); -- 2.7.4