diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-18 13:46:16 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-18 13:46:16 +0200 |
commit | d1ea609881befd71e3251e33c02c2d5e5bb5380b (patch) | |
tree | 9e05a694f2346d83d8a30cac4190e546d568ee52 | |
parent | b3778a7e531113f1125be0e7cc63a7f0a3340fc0 (diff) |
Add debug log for RFCOMM socket disconnection
-rw-r--r-- | audio/headset.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |