From 6d130cd5129e9f86bb4ccedfe709c9aba358b883 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 25 Oct 2011 11:26:35 +0300 Subject: [PATCH] Fix calling g_io_channel_shutdown twice for a gateway connection This happens in the following circumstance: bluetoothd[30869]: audio/manager.c:hf_io_cb() Authorization denied! (bluetoothd:30869): GLib-WARNING **: Invalid file descriptor. Reported by Daniel Wagner --- audio/manager.c | 1 - 1 file changed, 1 deletion(-) diff --git a/audio/manager.c b/audio/manager.c index 7ec031164..6d294b621 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -606,7 +606,6 @@ static void hf_io_cb(GIOChannel *chan, gpointer data) if (perr < 0) { DBG("Authorization denied!"); gateway_set_state(device, GATEWAY_STATE_DISCONNECTED); - goto drop; } return; -- 2.47.3