diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-10-11 15:28:15 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-10-11 15:28:15 +0000 |
commit | f6d1f79b0382b03dc01d3bb823c8c3eb70f82457 (patch) | |
tree | f54c34240522c7a53c6b112ae248241bba23905c /audio | |
parent | 7a89a8edbf7ef0a62257890e0b8f55e485bbf1a3 (diff) |
Don't set suspend timer if the SEP is locked
Diffstat (limited to 'audio')
-rw-r--r-- | audio/a2dp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c index b6f0c627..a91141d7 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; |