diff options
author | June McEnroe <june@causal.agency> | 2020-11-14 11:24:55 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-11-14 11:24:55 -0500 |
commit | 7229eee4b507ab14f7553a14cba4f009a716bcde (patch) | |
tree | 8e0aaf0833a58e0e50e19e8260d08cb4676b7a15 /bounce.c | |
parent | Wait for POLLIN to do client tls_handshake (diff) | |
download | pounce-7229eee4b507ab14f7553a14cba4f009a716bcde.tar.gz pounce-7229eee4b507ab14f7553a14cba4f009a716bcde.zip |
Make struct Client public
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c index 5b5e524..0354bf5 100644 --- a/bounce.c +++ b/bounce.c @@ -493,7 +493,7 @@ int main(int argc, char *argv[]) { struct Client *client = event.clients[i]; if (revents & POLLOUT) clientConsume(client); if (revents & POLLIN) clientRecv(client); - if (clientError(client) || revents & (POLLHUP | POLLERR)) { + if (client->error || revents & (POLLHUP | POLLERR)) { clientFree(client); eventRemove(i); } |