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:
parent
36edabd9b0
commit
2c827870c9
1 changed files with 1 additions and 4 deletions
|
@ -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…
Reference in a new issue