0
0
Fork 0
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:
Jason Volk 2019-09-06 12:08:49 -07:00
parent 7ab6144e30
commit 693ee3665c

View file

@ -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));