From afe5c9cb8cab004c8b2693b85ffa0abe53ca4a85 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 6 Sep 2026 16:16:47 -0400 Subject: [PATCH] send stopped event to trackers on stop --- libi2pd_client/TorrentsTunnel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd_client/TorrentsTunnel.cpp b/libi2pd_client/TorrentsTunnel.cpp index 5584e064..1ec71948 100644 --- a/libi2pd_client/TorrentsTunnel.cpp +++ b/libi2pd_client/TorrentsTunnel.cpp @@ -84,15 +84,16 @@ namespace torrents m_KeepAliveCheckTimer.cancel (); m_ReconnectCheckTimer.cancel (); m_TorrentsStatusUpdateTimer.cancel (); - m_Torrents.clear (); for (auto it: m_Torrents) { + RequestTorrentTrackers (it.second, eTrackerAnnounceEventStopped); auto fullPath = it.second->GetFullPath (); fullPath += ".resume"; boost::asio::post (m_DiskIOService.GetService (), [torrent = it.second, fullPath]() { torrent->SaveTorrentResumeFile (fullPath); }); } + m_Torrents.clear (); m_DiskIOService.Stop (); i2p::client::I2PService::Stop (); }