summaryrefslogtreecommitdiff
path: root/src/wayland-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-server.c')
-rw-r--r--src/wayland-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index e8173fb..97d8918 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -906,8 +906,8 @@ socket_data(int fd, uint32_t mask, void *data)
&length);
if (client_fd < 0)
fprintf(stderr, "failed to accept, errno: %d\n", errno);
-
- wl_client_create(display, client_fd);
+ else
+ wl_client_create(display, client_fd);
return 1;
}