summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-10-10 09:13:30 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-10-10 09:13:30 +0000
commitd0f7d2f3742cbd962a4e8ca7f982185fd07a424e (patch)
tree535e2b9e5eea2769554fe1a8b73e30d9c53f4024 /audio/a2dp.c
parentbc3ec576543eac39562035172a17e7d5ad734f04 (diff)
Remove suspend timer if the other end sends a suspend command
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c6
1 files changed, 6 insertions, 0 deletions
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;
}