Revert "Add avdtp ref when disconnect timer is active" 99/268799/1
authordh79pyun <dh79.pyun@samsung.com>
Mon, 3 Jan 2022 07:04:56 +0000 (16:04 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Mon, 3 Jan 2022 07:05:27 +0000 (16:05 +0900)
This reverts commit f3f1e150ceb4ada38f3d921ed7d4f1a0e5771abc.

Change-Id: Ie99945ff24d8dbe254fcf51f33a4499b4e74f0c8
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
profiles/audio/avdtp.c

index 26401f8..5ae4501 100644 (file)
@@ -1568,9 +1568,6 @@ static void set_disconnect_timer_for_sink(struct avdtp *session, gboolean discon
        if (session->dc_timer)
                remove_disconnect_timer(session);
 
-       /* Take a ref while disconnect timer is active */
-       avdtp_ref(session);
-
        device_get_name(session->device, name, sizeof(name));
        DBG("name : [%s]", name);
        if (g_str_equal(name, "VW BT") || g_str_equal(name, "VW MI") ||