summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/btio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/btio.c b/common/btio.c
index 504a7133..0074d4f9 100644
--- a/common/btio.c
+++ b/common/btio.c
@@ -1010,8 +1010,10 @@ gboolean bt_io_accept(GIOChannel *io, BtIOConnect connect, gpointer user_data,
return FALSE;
}
- if (!(pfd.revents & POLLOUT))
- (void) read(sock, &c, 1);
+ if (!(pfd.revents & POLLOUT)) {
+ int ret;
+ ret = read(sock, &c, 1);
+ }
accept_add(io, connect, user_data, destroy);