misc: fdm already logs failures

This commit is contained in:
Daniel Eklöf 2019-11-03 00:25:17 +01:00
parent 89997b97a0
commit 79c3121aa3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 8 additions and 30 deletions

View file

@ -196,7 +196,6 @@ fdm_server(struct fdm *fdm, int fd, int events, void *data)
};
if (!fdm_add(server->fdm, client_fd, EPOLLIN, &fdm_client, client)) {
LOG_ERR("client FD=%d: failed to add client to FDM", client_fd);
close(client_fd);
free(client);
return false;
@ -321,10 +320,8 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl)
.clients = tll_init(),
};
if (!fdm_add(fdm, fd, EPOLLIN, &fdm_server, server)) {
LOG_ERR("failed to add server FD to the FDM");
if (!fdm_add(fdm, fd, EPOLLIN, &fdm_server, server))
goto err;
}
return server;