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

pull/1669/head
Jeff Becker 3 years ago
parent 0900ab88d1
commit 67f8a7116f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save