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:
parent
e2569b4cb6
commit
e09111ff4e
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue