mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
DRY violation fixed
This commit is contained in:
parent
d73688bfd8
commit
4b18bb29a6
@ -1882,9 +1882,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…
Reference in New Issue
Block a user