mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
* Remove stale lock files if it is held by the same hostname and the
pid is not running. * Added rak::timer::from_seconds(uint32_t) and converted all uses to this to avoid overflows etc. * For each cycle through the tracker list without any successfull connections, increase the timeout by 20 seconds. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@635 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -58,7 +58,7 @@ WindowHttpQueue::WindowHttpQueue(core::HttpQueue* q) :
|
||||
|
||||
void
|
||||
WindowHttpQueue::redraw() {
|
||||
m_slotSchedule(this, (cachedTime + 1000000).round_seconds());
|
||||
m_slotSchedule(this, (cachedTime + rak::timer::from_seconds(1)).round_seconds());
|
||||
|
||||
cleanup_list();
|
||||
|
||||
@@ -147,7 +147,7 @@ WindowHttpQueue::receive_erase(core::CurlGet* h) {
|
||||
throw std::logic_error("WindowHttpQueue::receive_erase(...) tried to remove an object we don't have");
|
||||
|
||||
itr->m_http = NULL;
|
||||
itr->m_timer = cachedTime + 10000000;
|
||||
itr->m_timer = cachedTime + rak::timer::from_seconds(1);
|
||||
|
||||
mark_dirty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user