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.
pull/1557/head
Jason Rhinelander 3 years ago
parent 36edabd9b0
commit 2c827870c9

@ -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

Loading…
Cancel
Save