mirror of https://git.48k.eu/ogserver
#1043 check for WoL pending confirmation logic only for client
REST API request does not need to perform a list lookup on the wol list.master
parent
20301007a1
commit
1379ee95f4
|
@ -344,11 +344,11 @@ void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events)
|
||||||
setsockopt(client_sd, IPPROTO_TCP, TCP_KEEPINTVL, &intl, sizeof(int));
|
setsockopt(client_sd, IPPROTO_TCP, TCP_KEEPINTVL, &intl, sizeof(int));
|
||||||
setsockopt(client_sd, IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(int));
|
setsockopt(client_sd, IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(int));
|
||||||
|
|
||||||
|
if (agent) {
|
||||||
cli_wol = og_client_wol_find(&client_addr.sin_addr);
|
cli_wol = og_client_wol_find(&client_addr.sin_addr);
|
||||||
if (cli_wol)
|
if (cli_wol)
|
||||||
og_client_wol_destroy(cli_wol);
|
og_client_wol_destroy(cli_wol);
|
||||||
|
|
||||||
if (agent) {
|
|
||||||
cli = __og_client_find(&client_addr.sin_addr);
|
cli = __og_client_find(&client_addr.sin_addr);
|
||||||
if (cli)
|
if (cli)
|
||||||
og_client_release(loop, cli);
|
og_client_release(loop, cli);
|
||||||
|
|
Loading…
Reference in New Issue