From d1ea609881befd71e3251e33c02c2d5e5bb5380b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 18 Mar 2009 13:46:16 +0200 Subject: Add debug log for RFCOMM socket disconnection --- audio/headset.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/headset.c b/audio/headset.c index 716b33d3..42df1613 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1153,8 +1153,10 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond, hs = device->headset; - if (cond & (G_IO_ERR | G_IO_HUP)) + if (cond & (G_IO_ERR | G_IO_HUP)) { + debug("ERR or HUP on RFCOMM socket"); goto failed; + } if (g_io_channel_read(chan, (gchar *) buf, sizeof(buf) - 1, &bytes_read) != G_IO_ERROR_NONE) -- cgit