Browse Source

Merge pull request #5959 from dzmat/DRY_fix_minor

Little DRY violation fixed
adaptive-webui-19844
sledgehammer999 8 years ago committed by GitHub
parent
commit
a178268b31
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -1870,9 +1870,7 @@ void Session::saveResumeData() @@ -1870,9 +1870,7 @@ void Session::saveResumeData()
switch (a->type()) {
case libt::save_resume_data_failed_alert::alert_type:
case libt::save_resume_data_alert::alert_type:
TorrentHandle *torrent = m_torrents.take(static_cast<libt::torrent_alert *>(a)->handle.info_hash());
if (torrent)
torrent->handleAlert(a);
dispatchTorrentAlert(a);
break;
}
#if LIBTORRENT_VERSION_NUM < 10100

Loading…
Cancel
Save