mirror of
https://github.com/matrix-construct/construct
synced 2024-11-20 00:33:15 +01:00
client: always purge a client from the connid table, as connid is not related to FD
This commit is contained in:
parent
3da53a4d74
commit
36f0ec74c1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue