style nitch

pull/935/head
Jeff Becker 5 years ago committed by Jason Rhinelander
parent 44e0e2c034
commit 28a2d471d6

@ -62,7 +62,6 @@ namespace llarp
if(intro.expiresAt > m_NextIntro.expiresAt)
m_NextIntro = intro;
}
currentConvoTag.Randomize();
}
OutboundContext::~OutboundContext() = default;
@ -176,6 +175,8 @@ namespace llarp
OutboundContext::AsyncGenIntro(const llarp_buffer_t& payload,
ProtocolType t)
{
if(not currentConvoTag.IsZero())
return;
if(remoteIntro.router.IsZero())
SwapIntros();
@ -193,6 +194,7 @@ namespace llarp
return;
}
}
currentConvoTag.Randomize();
auto frame = std::make_shared< ProtocolFrame >();
auto ex = std::make_shared< AsyncKeyExchange >(
m_Endpoint->RouterLogic(), remoteIdent, m_Endpoint->GetIdentity(),

@ -108,7 +108,7 @@ namespace llarp
SendContext::AsyncEncryptAndSendTo(const llarp_buffer_t& data,
ProtocolType protocol)
{
if(lastGoodSend)
if(lastGoodSend != 0)
{
EncryptAndSendTo(data, protocol);
}

Loading…
Cancel
Save