mirror of
https://github.com/matrix-construct/construct
synced 2024-11-30 02:32:43 +01:00
ircd::server: Tolerate multiple peer::close() calls for now.
This commit is contained in:
parent
7ab6144e30
commit
693ee3665c
1 changed files with 4 additions and 1 deletions
|
@ -607,7 +607,10 @@ noexcept
|
||||||
void
|
void
|
||||||
ircd::server::peer::close(const net::close_opts &opts)
|
ircd::server::peer::close(const net::close_opts &opts)
|
||||||
{
|
{
|
||||||
assert(!op_fini);
|
//assert(!op_fini);
|
||||||
|
if(op_fini)
|
||||||
|
return;
|
||||||
|
|
||||||
op_fini = true;
|
op_fini = true;
|
||||||
link *links[LINK_MAX];
|
link *links[LINK_MAX];
|
||||||
const auto end(pointers(this->links, links));
|
const auto end(pointers(this->links, links));
|
||||||
|
|
Loading…
Reference in a new issue