kill outbound context when we remove our convotag

This commit is contained in:
Jeff Becker 2021-06-14 14:50:22 -04:00
parent 71d17dc2c9
commit e48feb8b9a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 8 additions and 0 deletions

View File

@ -337,6 +337,14 @@ namespace llarp
{
SwapIntros();
}
if (ReadyToSend() and IntroSent())
{
// if we dont have a cached session key after sending intro we are in a fugged state so
// expunge
SharedSecret discardme;
if (not m_DataHandler->GetCachedSessionKeyFor(currentConvoTag, discardme))
return true;
}
if ((remoteIntro.router.IsZero() or m_BadIntros.count(remoteIntro))
and GetPathByRouter(m_NextIntro.router))