Diff between 1302116ea4b622342f1dfc3f797536335680eb08 and 51197aac23384bb81cc183d9bf27c7021c40d887
Changed Files
| File | Additions | Deletions | Status |
| btio/btio.c | +4 | -1 | modified |
Full Patch
diff --git a/btio/btio.c b/btio/btio.c
index 1a34927..cfaa939 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -253,8 +253,11 @@ static gboolean server_cb(GIOChannel *io, GIOCondition cond,
srv_sock = g_io_channel_unix_get_fd(io);
cli_sock = accept(srv_sock, NULL, NULL);
- if (cli_sock < 0)
+ if (cli_sock < 0) {
+ if (errno == EBADFD)
+ return FALSE;
return TRUE;
+ }
cli_io = g_io_channel_unix_new(cli_sock);