From 01240f75abcdb0cde13c760727c3e3fe59550ecd Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 27 Jul 2026 21:56:09 -0400 Subject: [PATCH] defer moving stream to destination's thread --- libi2pd_client/AddressBook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd_client/AddressBook.cpp b/libi2pd_client/AddressBook.cpp index 4ff93a7e..8469e7a4 100644 --- a/libi2pd_client/AddressBook.cpp +++ b/libi2pd_client/AddressBook.cpp @@ -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)](){});