summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
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;
}