Fix DA device Bonding/Unbonding issue 28/320628/1
authorAnuj Jain <anuj01.jain@samsung.com>
Mon, 10 Feb 2025 12:55:45 +0000 (18:25 +0530)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 5 Mar 2025 05:23:28 +0000 (14:23 +0900)
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 64ba1fed29e17e8949e9550b56849ea0066e1955..5b5d888ffb67955c187d35af9650e04be0085f76 100644 (file)
@@ -1619,10 +1619,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];