summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-18 22:07:10 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-18 22:07:10 +0000
commit58b173171f61373c7eb8ed00d0635fb06fa741cc (patch)
tree9459a2a43e4615caf69ce22d28e89fba234dae72 /audio/a2dp.c
parentc0e0aa5745b38505b180ffdd7d5df44612597e75 (diff)
Reset value of timer id after removing it
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;
}