mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 01:44:26 +00:00
- qBittorrent shutdown is now way faster
This commit is contained in:
parent
1d31e049a4
commit
0ac2554060
@ -14,6 +14,8 @@
|
|||||||
- FEATURE: Added notification in WebUI when qBittorrent is not reachable
|
- FEATURE: Added notification in WebUI when qBittorrent is not reachable
|
||||||
- FEATURE: Rewrote folder scanning code (Now uses a filesystem watcher)
|
- FEATURE: Rewrote folder scanning code (Now uses a filesystem watcher)
|
||||||
- FEATURE: Added torrent deletion from hard drive function in Web UI
|
- FEATURE: Added torrent deletion from hard drive function in Web UI
|
||||||
|
- BUGFIX: Made usage of fastresume data more reliable
|
||||||
|
- BUGFIX: qBittorrent shutdown is now faster
|
||||||
- BUGFIX: Fixed several memory leaks
|
- BUGFIX: Fixed several memory leaks
|
||||||
- BUGFIX: WebUI is now working with IE7
|
- BUGFIX: WebUI is now working with IE7
|
||||||
- BUGFIX: Fixed spacing problem in toolbar when toggling its visibility
|
- BUGFIX: Fixed spacing problem in toolbar when toggling its visibility
|
||||||
|
@ -816,9 +816,12 @@ void bittorrent::saveFastResumeData() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Saving fastresume data can fail
|
// Saving fastresume data can fail
|
||||||
if (dynamic_cast<save_resume_data_failed_alert const*>(a)) {
|
save_resume_data_failed_alert const* rda = dynamic_cast<save_resume_data_failed_alert const*>(a);
|
||||||
|
if (rda) {
|
||||||
--num_resume_data;
|
--num_resume_data;
|
||||||
s->pop_alert();
|
s->pop_alert();
|
||||||
|
// Remove torrent from session
|
||||||
|
s->remove_torrent(rda->handle);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a);
|
save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a);
|
||||||
@ -837,6 +840,8 @@ void bittorrent::saveFastResumeData() {
|
|||||||
boost::filesystem::ofstream out(fs::path(torrentBackup.path().toUtf8().data()) / file.toUtf8().data(), std::ios_base::binary);
|
boost::filesystem::ofstream out(fs::path(torrentBackup.path().toUtf8().data()) / file.toUtf8().data(), std::ios_base::binary);
|
||||||
out.unsetf(std::ios_base::skipws);
|
out.unsetf(std::ios_base::skipws);
|
||||||
bencode(std::ostream_iterator<char>(out), *rd->resume_data);
|
bencode(std::ostream_iterator<char>(out), *rd->resume_data);
|
||||||
|
// Remove torrent from session
|
||||||
|
s->remove_torrent(rd->handle);
|
||||||
s->pop_alert();
|
s->pop_alert();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user