about summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-14 11:24:55 -0500
committerJune McEnroe <june@causal.agency>2020-11-14 11:24:55 -0500
commit7229eee4b507ab14f7553a14cba4f009a716bcde (patch)
tree8e0aaf0833a58e0e50e19e8260d08cb4676b7a15 /bounce.c
parentWait for POLLIN to do client tls_handshake (diff)
downloadpounce-7229eee4b507ab14f7553a14cba4f009a716bcde.tar.gz
pounce-7229eee4b507ab14f7553a14cba4f009a716bcde.zip
Make struct Client public
Diffstat (limited to 'bounce.c')
-rw-r--r--bounce.c2
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);
 			}