1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Simplify code of many f's

We don't need to go through the contention killer here, that was mainly
for (long ago) debugging reasons.
This commit is contained in:
Jason Rhinelander 2021-03-02 17:58:30 -04:00
parent 36edabd9b0
commit 2c827870c9

View file

@ -183,10 +183,7 @@ namespace llarp
OutboundMessageHandler::DoCallback(SendStatusHandler callback, SendStatus status)
{
if (callback)
{
auto f = [f = std::move(callback), status] { f(status); };
_loop->call([this, f = std::move(f)] { m_Killer.TryAccess(f); });
}
_loop->call([f = std::move(callback), status] { f(status); });
}
void