summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index 8206b880..ce50c9cf 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -920,8 +920,10 @@ unsigned int a2dp_source_request_stream(struct avdtp *session,
break;
case AVDTP_STATE_STREAMING:
if (!start || !source.suspending) {
- if (source.suspend_timer)
+ if (source.suspend_timer) {
g_source_remove(source.suspend_timer);
+ source.suspend_timer = 0;
+ }
g_idle_add((GSourceFunc) finalize_stream_setup, setup);
return cb_data->id;
}