Browse Source

DRY violation fixed

adaptive-webui-19844
dzmat 8 years ago
parent
commit
4b18bb29a6
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -1882,9 +1882,7 @@ void Session::saveResumeData()
switch (a->type()) { switch (a->type()) {
case libt::save_resume_data_failed_alert::alert_type: case libt::save_resume_data_failed_alert::alert_type:
case libt::save_resume_data_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()); dispatchTorrentAlert(a);
if (torrent)
torrent->handleAlert(a);
break; break;
} }
#if LIBTORRENT_VERSION_NUM < 10100 #if LIBTORRENT_VERSION_NUM < 10100

Loading…
Cancel
Save