this fixes the shit wtf

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

@ -381,7 +381,7 @@ namespace llarp
m_ReadyHooks.clear();
}
const auto timeout = std::min(lastGoodSend, m_LastInboundTraffic);
const auto timeout = std::max(lastGoodSend, m_LastInboundTraffic);
if (lastGoodSend > 0s and now >= timeout + (sendTimeout / 2))
{
// send a keep alive to keep this session alive

Loading…
Cancel
Save