diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-03-05 11:08:19 -0300 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-03-05 11:08:19 -0300 | 
| commit | 959c5045ee72aa078a1f85491917d0e71c0aefe4 (patch) | |
| tree | b429efb30bb200dd5ccdbea89e386476dba64e2e | |
| parent | 3294d4df5f170aabc7663d79b3ca00f6961818b7 (diff) | |
Remove temporary watch if the connection was accepted.
| -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  | 
