mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
handle requests completions in netdb requests thread
This commit is contained in:
@@ -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
|
||||
else
|
||||
request->Fail ();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
std::shared_ptr<RequestedDestination> NetDbRequests::FindRequest (const IdentHash& ident) const
|
||||
|
||||
Reference in New Issue
Block a user