mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
Fixed minor bugs in the resume save and start torrent code.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@434 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+13
-1
@@ -106,10 +106,22 @@ Manager::stop(Download* d) {
|
||||
|
||||
d->stop();
|
||||
|
||||
d->get_download().hash_save();
|
||||
if (d->get_download().is_hash_checked())
|
||||
d->get_download().hash_save();
|
||||
|
||||
m_downloadStore.save(d);
|
||||
}
|
||||
|
||||
void
|
||||
Manager::start_safe(Download* d) {
|
||||
try {
|
||||
start(d);
|
||||
} catch (torrent::local_error& e) {
|
||||
m_logImportant.push_front(e.what());
|
||||
m_logComplete.push_front(e.what());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Manager::set_dns(const std::string& dns) {
|
||||
unsigned int a, b, c, d;
|
||||
|
||||
Reference in New Issue
Block a user