mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
ircd::server: Fix the interrupted link open to close to delete transit.
This commit is contained in:
parent
79f6974f86
commit
8091bdd007
1 changed files with 7 additions and 1 deletions
|
@ -601,6 +601,13 @@ ircd::server::peer::handle_open(link &link,
|
|||
string(remote),
|
||||
what(eptr));
|
||||
|
||||
if(op_fini)
|
||||
{
|
||||
assert(link.finished());
|
||||
handle_finished(link);
|
||||
return;
|
||||
}
|
||||
|
||||
link.close(net::dc::RST);
|
||||
return;
|
||||
}
|
||||
|
@ -1201,7 +1208,6 @@ ircd::server::link::handle_close(std::exception_ptr eptr)
|
|||
if(op_init)
|
||||
{
|
||||
assert(bool(eptr));
|
||||
op_init = false;
|
||||
}
|
||||
|
||||
if(peer)
|
||||
|
|
Loading…
Reference in a new issue