Merge pull request #1896 from majestrate/unstuck-obctx-2022-04-17

handle edge case better
This commit is contained in:
majestrate 2022-04-18 15:48:20 -04:00 committed by GitHub
commit 9fd20c885b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -45,11 +45,10 @@ namespace llarp
if (dst == remoteIntro.pathID && remoteIntro.router == p->Endpoint())
{
LogWarn(Name(), " message ", seq, " dropped by endpoint ", p->Endpoint(), " via ", dst);
MarkCurrentIntroBad(Now());
ShiftIntroduction(false);
UpdateIntroSet();
SwapIntros();
markedBad = remoteIntro.IsExpired(Now());
MarkCurrentIntroBad(Now());
ShiftIntroRouter(p->Endpoint());
UpdateIntroSet();
}
return true;
}