mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
value initialize introduction so that expiresAt defaults to zero
This commit is contained in:
parent
9f353238af
commit
d45f0f8951
1 changed files with 2 additions and 2 deletions
|
@ -158,10 +158,10 @@ namespace llarp
|
|||
OutboundContext::ShiftIntroRouter(const RouterID r)
|
||||
{
|
||||
const auto now = Now();
|
||||
Introduction selectedIntro;
|
||||
Introduction selectedIntro{};
|
||||
for (const auto& intro : currentIntroSet.intros)
|
||||
{
|
||||
if (intro.expiresAt > selectedIntro.expiresAt && intro.router != r)
|
||||
if (intro.expiresAt > selectedIntro.expiresAt and intro.router != r)
|
||||
{
|
||||
selectedIntro = intro;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue