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
commit d7e9533e8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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\"")