0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 00:10:59 +01:00

ircd::server: Case for close during init.

This commit is contained in:
Jason Volk 2018-03-09 13:53:23 -08:00
parent e2569b4cb6
commit e09111ff4e

View file

@ -1152,6 +1152,12 @@ ircd::server::link::handle_close(std::exception_ptr eptr)
{ {
assert(op_fini); assert(op_fini);
if(op_init)
{
assert(bool(eptr));
op_init = false;
}
if(peer) if(peer)
peer->handle_close(*this, std::move(eptr)); peer->handle_close(*this, std::move(eptr));
} }