From 959c5045ee72aa078a1f85491917d0e71c0aefe4 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 5 Mar 2009 11:08:19 -0300 Subject: Remove temporary watch if the connection was accepted. --- audio/avdtp.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit