diff --git a/libi2pd_client/TorrentsTunnel.cpp b/libi2pd_client/TorrentsTunnel.cpp index 338d34d4..58a74627 100644 --- a/libi2pd_client/TorrentsTunnel.cpp +++ b/libi2pd_client/TorrentsTunnel.cpp @@ -426,7 +426,7 @@ namespace torrents { return torrentByID.second.lock () == torrent; }); - if (it != m_TorrentsByID.begin ()) + if (it != m_TorrentsByID.end ()) return { it->first, false }; } return { 0, false };