client: always purge a client from the connid table, as connid is not related to FD

This commit is contained in:
William Pitcock 2016-03-01 19:51:58 -06:00
parent 3da53a4d74
commit 36f0ec74c1

View file

@ -1944,13 +1944,14 @@ close_connection(struct Client *client_p)
else else
ServerStats.is_ni++; ServerStats.is_ni++;
del_from_cli_connid_hash(client_p);
if(client_p->localClient->F != NULL) if(client_p->localClient->F != NULL)
{ {
/* attempt to flush any pending dbufs. Evil, but .. -- adrian */ /* attempt to flush any pending dbufs. Evil, but .. -- adrian */
if(!IsIOError(client_p)) if(!IsIOError(client_p))
send_queued(client_p); send_queued(client_p);
del_from_cli_connid_hash(client_p);
rb_close(client_p->localClient->F); rb_close(client_p->localClient->F);
client_p->localClient->F = NULL; client_p->localClient->F = NULL;
} }