mirror of
https://github.com/matrix-construct/construct
synced 2024-06-11 06:28:55 +02:00
ircd::server: Fix setting peer error state when first link fails.
This commit is contained in:
parent
660d0052cf
commit
41c012a695
|
@ -864,7 +864,9 @@ ircd::server::peer::handle_open(link &link,
|
|||
{
|
||||
if(eptr)
|
||||
{
|
||||
if(links.size() == 1)
|
||||
// Mark the peer as errored if the first link connection failed.
|
||||
assert(!links.empty());
|
||||
if(std::addressof(link) == std::addressof(links.front()))
|
||||
err_set(eptr);
|
||||
|
||||
thread_local char rembuf[64];
|
||||
|
|
Loading…
Reference in a new issue