mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 06:32:31 +00:00
* Select the proper encoding for a torrent's name so that multi-file
torrents get the right root directory. * Properly clean up after catching a storage_error in EntryList::open(). * Added a funtion to torrent::Download for syncing chunks to disk, and made torrent::resume_save_progress(...) use it. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@736 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+4
-4
@@ -126,10 +126,10 @@ load_arg_torrents(Control* c, char** first, char** last) {
|
||||
}
|
||||
}
|
||||
|
||||
rak::timer
|
||||
client_next_timeout() {
|
||||
static inline rak::timer
|
||||
client_next_timeout(Control* c) {
|
||||
if (taskScheduler.empty())
|
||||
return rak::timer::from_seconds(60);
|
||||
return c->is_shutdown_started() ? rak::timer::from_milliseconds(100) : rak::timer::from_seconds(60);
|
||||
else if (taskScheduler.top()->time() <= cachedTime)
|
||||
return 0;
|
||||
else
|
||||
@@ -252,7 +252,7 @@ main(int argc, char** argv) {
|
||||
rak::priority_queue_perform(&taskScheduler, cachedTime);
|
||||
|
||||
// Do shutdown check before poll, not after.
|
||||
control->core()->get_poll_manager()->poll(client_next_timeout());
|
||||
control->core()->get_poll_manager()->poll(client_next_timeout(control));
|
||||
}
|
||||
|
||||
control->core()->download_list()->session_save();
|
||||
|
||||
Reference in New Issue
Block a user