From f6d1f79b0382b03dc01d3bb823c8c3eb70f82457 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 11 Oct 2007 15:28:15 +0000 Subject: Don't set suspend timer if the SEP is locked --- audio/a2dp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/a2dp.c b/audio/a2dp.c index b6f0c627c..a91141d7a 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -633,7 +633,8 @@ static gboolean start_ind(struct avdtp *session, struct avdtp_local_sep *sep, a2dp_sep->session = avdtp_ref(session); - a2dp_sep->suspend_timer = g_timeout_add(SUSPEND_TIMEOUT, + if (!a2dp_sep->locked) + a2dp_sep->suspend_timer = g_timeout_add(SUSPEND_TIMEOUT, (GSourceFunc) suspend_timeout, a2dp_sep); return TRUE; -- cgit v1.2.1