Fix DA device Bonding/Unbonding issue 08/319408/1 accepted/tizen/7.0/unified/20250212.164004
authorAnuj Jain <anuj01.jain@samsung.com>
Mon, 10 Feb 2025 12:55:45 +0000 (18:25 +0530)
committerAnuj Jain <anuj01.jain@samsung.com>
Mon, 10 Feb 2025 12:55:45 +0000 (18:25 +0530)
This Patch fixes the irregularity in device reference count.

Change-Id: If4d0df0a6de3a708ecfc6b998cfaab6b5ff3db9f
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
profiles/audio/avdtp.c

index ebd278a3ee02285f71e60e33324186bc7c470190..d72575e826dec787829907a99c9c145f9e097793 100644 (file)
@@ -1613,10 +1613,9 @@ static void set_disconnect_timer(struct avdtp *session)
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        if (session->dc_timer)
                remove_disconnect_timer(session);
-#else
+#endif
        /* Take a ref while disconnect timer is active */
        avdtp_ref(session);
-#endif
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        char name[6];