Browse Source

Log save_resume_data_failed_alert

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
7d860b6c24
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/base/bittorrent/torrenthandle.cpp

8
src/base/bittorrent/torrenthandle.cpp

@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f @@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
{
// if torrent has no metadata we should save dummy fastresume data
// containing Magnet URI and qBittorrent own resume data only
if (p->error.value() == lt::errors::no_metadata)
if (p->error.value() == lt::errors::no_metadata) {
handleSaveResumeDataAlert(nullptr);
else
}
else {
LogMsg(tr("Save resume data failed. Torrent: \"%1\", error: \"%2\"")
.arg(name(), QString::fromStdString(p->error.message())), Log::CRITICAL);
m_session->handleTorrentResumeDataFailed(this);
}
}
void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p)

Loading…
Cancel
Save