defer ready to send state until after we send a handshake

pull/1658/head
Jeff Becker 3 years ago
parent 40a189a9a3
commit c5a86a49a3
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -85,6 +85,11 @@ namespace llarp
m_DataHandler->PutSenderFor(currentConvoTag, currentIntroSet.addressKeys, false);
m_DataHandler->PutIntroFor(currentConvoTag, remoteIntro);
ShiftIntroRouter(m_NextIntro.router);
// if we have not made a handshake to the remote endpoint do so
if (not IntroGenerated())
{
KeepAlive();
}
}
}
@ -142,7 +147,7 @@ namespace llarp
return false;
if (remoteIntro.router.IsZero())
return false;
return GetPathByRouter(remoteIntro.router) != nullptr;
return IntroSent();
}
void

Loading…
Cancel
Save