From d0f7d2f3742cbd962a4e8ca7f982185fd07a424e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 10 Oct 2007 09:13:30 +0000 Subject: Remove suspend timer if the other end sends a suspend command --- audio/a2dp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audio/a2dp.c b/audio/a2dp.c index cb43dce2..e2aeedfd 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -680,6 +680,12 @@ static gboolean suspend_ind(struct avdtp *session, struct avdtp_local_sep *sep, debug("SBC Sink: Suspend_Ind"); else debug("SBC Source: Suspend_Ind"); + + if (a2dp_sep->suspend_timer) { + g_source_remove(a2dp_sep->suspend_timer); + a2dp_sep->suspend_timer = NULL; + } + return TRUE; } -- cgit