From 83208ebc7254aad5c28195f827fa7e845be9b6c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 8 Feb 2015 13:02:50 +1100 Subject: [PATCH] fd being invalidated is checked for in wait_write_select so we don't need to handle it twice --- src/connector.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/connector.c b/src/connector.c index 028e6f9e..ca19a692 100644 --- a/src/connector.c +++ b/src/connector.c @@ -495,10 +495,6 @@ void *sender(void *arg) fd = client->fd; ck_runlock(&cdata->lock); - if (fd == -1) { - LOGDEBUG("Discarding message sent to invalidated client"); - goto contfree; - } /* If this socket is not ready to receive data from us, put the * send back on the tail of the list and decrease the timeout * to poll to either look for a client that is ready or poll