Browse Source

Revert "Check clients match in epoll loop"

This reverts commit b50f2ba86c.

Wrong
master
Con Kolivas 10 years ago
parent
commit
88fcb55faa
  1. 3
      src/connector.c

3
src/connector.c

@ -492,7 +492,8 @@ void *receiver(void *arg)
client = event.data.ptr; client = event.data.ptr;
/* Recheck this client still exists in the same form when it /* Recheck this client still exists in the same form when it
* was queued. */ * was queued. */
if (unlikely(client != ref_client_by_id(cdata, client->id))) client = ref_client_by_id(cdata, client->id);
if (unlikely(!client))
continue; continue;
if (event.events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) { if (event.events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) {
/* Client disconnected */ /* Client disconnected */

Loading…
Cancel
Save