Browse Source

fd being invalidated is checked for in wait_write_select so we don't need to handle it twice

master
Con Kolivas 10 years ago
parent
commit
8b1b6d45d6
  1. 4
      src/connector.c

4
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

Loading…
Cancel
Save