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 (); }