mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd: do nothing in client_release_connids if !MyConnect
This commit is contained in:
parent
cc02bdf3a6
commit
558744e520
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ client_release_connids(struct Client *client_p)
|
||||||
if (client_p->localClient->connids.head)
|
if (client_p->localClient->connids.head)
|
||||||
s_assert(MyConnect(client_p));
|
s_assert(MyConnect(client_p));
|
||||||
|
|
||||||
|
if (!MyConnect(client_p))
|
||||||
|
return;
|
||||||
|
|
||||||
RB_DLINK_FOREACH_SAFE(ptr, ptr2, client_p->localClient->connids.head)
|
RB_DLINK_FOREACH_SAFE(ptr, ptr2, client_p->localClient->connids.head)
|
||||||
connid_put(RB_POINTER_TO_UINT(ptr->data));
|
connid_put(RB_POINTER_TO_UINT(ptr->data));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue