delay setting sentIntro by the advertised latency of the remote intro instead of static value

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

@ -239,7 +239,8 @@ namespace llarp
ex->hook = [self = shared_from_this(), path](auto frame) {
if (not self->Send(std::move(frame), path))
return;
self->m_Endpoint->Loop()->call_later(100ms, [self]() { self->sentIntro = true; });
self->m_Endpoint->Loop()->call_later(
self->remoteIntro.latency, [self]() { self->sentIntro = true; });
};
ex->msg.PutBuffer(payload);

Loading…
Cancel
Save