Fix after merge

This commit is contained in:
kssenii 2023-04-13 13:34:19 +02:00
parent 188b41cdb2
commit 58a30213c9

View File

@ -538,7 +538,8 @@ void FileSegment::setBroken()
assertNotDetachedUnlocked(lock); assertNotDetachedUnlocked(lock);
assertIsDownloaderUnlocked("setBroken", lock); assertIsDownloaderUnlocked("setBroken", lock);
resetDownloadingStateUnlocked(lock); if (download_state == State::DOWNLOADING)
resetDownloadingStateUnlocked(lock);
if (download_state != State::DOWNLOADED) if (download_state != State::DOWNLOADED)
download_state = State::PARTIALLY_DOWNLOADED_NO_CONTINUATION; download_state = State::PARTIALLY_DOWNLOADED_NO_CONTINUATION;