mirror of https://github.com/oxen-io/lokinet
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:
parent
0900ab88d1
commit
67f8a7116f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue