From 88fcb55faa302c8adcd6bdae3846f3374b72b470 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 22 Apr 2015 19:10:58 +1000 Subject: [PATCH] Revert "Check clients match in epoll loop" This reverts commit b50f2ba86c0d4173b7f8d179ae5177eb8379451a. Wrong --- src/connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 60354661..d3f68ac8 100644 --- a/src/connector.c +++ b/src/connector.c @@ -492,7 +492,8 @@ void *receiver(void *arg) client = event.data.ptr; /* Recheck this client still exists in the same form when it * was queued. */ - if (unlikely(client != ref_client_by_id(cdata, client->id))) + client = ref_client_by_id(cdata, client->id); + if (unlikely(!client)) continue; if (event.events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) { /* Client disconnected */