Browse Source

handle requests completions in netdb requests thread

pull/2072/head
orignal 7 months ago
parent
commit
c00eb8cf44
  1. 3
      libi2pd/NetDbRequests.cpp

3
libi2pd/NetDbRequests.cpp

@ -172,6 +172,8 @@ namespace data @@ -172,6 +172,8 @@ namespace data
}
void NetDbRequests::RequestComplete (const IdentHash& ident, std::shared_ptr<RouterInfo> r)
{
GetIOService ().post ([this, ident, r]()
{
std::shared_ptr<RequestedDestination> request;
{
@ -192,6 +194,7 @@ namespace data @@ -192,6 +194,7 @@ namespace data
else
request->Fail ();
}
});
}
std::shared_ptr<RequestedDestination> NetDbRequests::FindRequest (const IdentHash& ident) const

Loading…
Cancel
Save