summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
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);
 			}