if we get a discard message from the pivot discard the outbound context if the remote intro is also expired

This commit is contained in:
Jeff Becker 2021-06-21 16:02:03 -04:00
parent 0900ab88d1
commit 67f8a7116f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ namespace llarp
ShiftIntroduction(false);
UpdateIntroSet();
SwapIntros();
markedBad = remoteIntro.IsExpired(Now());
}
return true;
}
@ -399,6 +400,8 @@ namespace llarp
{
// send a keep alive to keep this session alive
KeepAlive();
if (markedBad)
return true;
}
// if we are dead return true so we are removed
return timeout > 0s ? (now >= timeout && now - timeout > sendTimeout)