Don't corrupt IDs of v2 torrents

PR #16841.
This commit is contained in:
Vladimir Golovnev
2022-04-09 11:53:17 +03:00
committed by GitHub
parent 8306a41d11
commit d7e9533e8c

View File

@@ -4444,6 +4444,8 @@ void Session::startUpTorrents()
}
}
else if (torrentID == torrentIDv2)
{
if (isHybrid)
{
torrentID = torrentIDv1;
needStore = true;
@@ -4463,6 +4465,7 @@ void Session::startUpTorrents()
}
}
}
}
else
{
LogMsg(tr("Failed to resume torrent: inconsistent torrent ID is detected. Torrent: \"%1\"")