This will be unref either at disconnect_timeout
or remove_disconnect_timer.
Change-Id: I3638ba446200f6c4d82e5f0923c9086f3519c283
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
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") ||