DRY violation fixed

This commit is contained in:
dzmat 2016-11-18 23:04:04 +07:00 committed by sledgehammer999
parent bc9cae199b
commit 721d29edda
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -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