summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bounce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 1f29f8c..5f615aa 100644
--- a/bounce.c
+++ b/bounce.c
@@ -429,8 +429,8 @@ int main(int argc, char *argv[]) {
 			}
 
 			struct Client *client = event.clients[i];
-			if (revents & POLLIN) clientRecv(client);
 			if (revents & POLLOUT) clientConsume(client);
+			if (revents & POLLIN) clientRecv(client);
 			if (clientError(client) || revents & (POLLHUP | POLLERR)) {
 				clientFree(client);
 				eventRemove(i);