defer moving stream to destination's thread

This commit is contained in:
orignal
2026-07-27 21:56:09 -04:00
parent 8948bb5e01
commit 01240f75ab
+1 -1
View File
@@ -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)](){});