|
|
|
@ -187,6 +187,7 @@ TorrentHandle::TorrentHandle(Session *session, const lt::torrent_handle &nativeH
@@ -187,6 +187,7 @@ TorrentHandle::TorrentHandle(Session *session, const lt::torrent_handle &nativeH
|
|
|
|
|
, m_ratioLimit(params.ratioLimit) |
|
|
|
|
, m_seedingTimeLimit(params.seedingTimeLimit) |
|
|
|
|
, m_tempPathDisabled(params.disableTempPath) |
|
|
|
|
, m_fastresumeDataRejected(false) |
|
|
|
|
, m_hasMissingFiles(false) |
|
|
|
|
, m_hasRootFolder(params.hasRootFolder) |
|
|
|
|
, m_needsToSetFirstLastPiecePriority(false) |
|
|
|
@ -1652,6 +1653,8 @@ void TorrentHandle::handleTorrentCheckedAlert(const lt::torrent_checked_alert *p
@@ -1652,6 +1653,8 @@ void TorrentHandle::handleTorrentCheckedAlert(const lt::torrent_checked_alert *p
|
|
|
|
|
else { |
|
|
|
|
m_startupState = Started; |
|
|
|
|
m_pauseWhenReady = false; |
|
|
|
|
if (m_fastresumeDataRejected && !m_hasMissingFiles) |
|
|
|
|
saveResumeData(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1788,6 +1791,8 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
@@ -1788,6 +1791,8 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
|
|
|
|
|
|
|
|
|
|
void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p) |
|
|
|
|
{ |
|
|
|
|
m_fastresumeDataRejected = true; |
|
|
|
|
|
|
|
|
|
if (p->error.value() == lt::errors::mismatching_file_size) { |
|
|
|
|
// Mismatching file size (files were probably moved)
|
|
|
|
|
m_hasMissingFiles = true; |
|
|
|
@ -1795,7 +1800,7 @@ void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_
@@ -1795,7 +1800,7 @@ void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_
|
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
LogMsg(tr("Fast resume data was rejected for torrent '%1'. Reason: %2. Checking again...") |
|
|
|
|
.arg(name(), QString::fromStdString(p->message())), Log::CRITICAL); |
|
|
|
|
.arg(name(), QString::fromStdString(p->message())), Log::WARNING); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|