From 8b1b6d45d645449fdf8263629e7eee4baa8bfc8f 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 950dd26c..9d053dba 100644 --- a/src/connector.c +++ b/src/connector.c @@ -506,10 +506,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