mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
delay setting sentIntro by the advertised latency of the remote intro instead of static value
This commit is contained in:
parent
c5a86a49a3
commit
220b8837da
|
@ -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…
Reference in a new issue