From 58b173171f61373c7eb8ed00d0635fb06fa741cc Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 18 Aug 2007 22:07:10 +0000 Subject: Reset value of timer id after removing it --- audio/a2dp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit