correctly persist link sessions

pull/1658/head
Jeff Becker 3 years ago
parent 046e02ebe7
commit 7a5dcc3eab
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -185,10 +185,8 @@ namespace llarp
return;
util::Lock l(_mutex);
auto& curr = m_PersistingSessions[remote];
if (until > curr)
curr = until;
LogDebug("persist session to ", remote, " until ", curr - time_now_ms());
m_PersistingSessions[remote] = std::max(until, m_PersistingSessions[remote]);
}
void

Loading…
Cancel
Save