mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
misc: fdm already logs failures
This commit is contained in:
parent
89997b97a0
commit
79c3121aa3
3 changed files with 8 additions and 30 deletions
5
server.c
5
server.c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue