summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/headset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index a95d5f46..1e57c177 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -208,8 +208,10 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond,
err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf) - 1,
&bytes_read);
- if (err != G_IO_ERROR_NONE)
+ if (err != G_IO_ERROR_NONE) {
error("Ignoring error %d", err);
+ return TRUE;
+ }
free_space = sizeof(hs->buf) - hs->data_start - hs->data_length - 1;