mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-25 11:50:09 +00:00
defer moving stream to destination's thread
This commit is contained in:
@@ -980,7 +980,7 @@ namespace client
|
||||
LogPrint (eLogError, "Addressbook: LeaseSet for address ", url.host, " not found");
|
||||
return false;
|
||||
}
|
||||
i2p::util::Defer ([stream]()
|
||||
i2p::util::Defer d ([stream]()
|
||||
{
|
||||
// destroy stream in destination's thread on exit
|
||||
boost::asio::post (i2p::client::context.GetSharedLocalDestination ()->GetService (), [s = std::move (stream)](){});
|
||||
|
||||
Reference in New Issue
Block a user