diff options
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r-- | audio/avdtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c index c92bf83c..e3423eaf 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -1904,6 +1904,9 @@ static void avdtp_connect_cb(GIOChannel *chan, GError *err, gpointer user_data) session->buf = g_malloc0(session->imtu); session->state = AVDTP_SESSION_STATE_CONNECTED; + if (session->io_id) + g_source_remove(session->io_id); + /* This watch should be low priority since otherwise the * connect callback might be dispatched before the session * callback if the kernel wakes us up at the same time for |