* Removed ticks for downloads, use the global tick instead.

* Fixed rak::priority_queue.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@608 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-12-15 22:56:03 +00:00
parent 7cc377b550
commit ca5b5e05ec
19 changed files with 145 additions and 106 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ Control::initialize() {
void
Control::cleanup() {
taskScheduler.erase(m_taskShutdown.clear());
priority_queue_erase(&taskScheduler, &m_taskShutdown);
m_inputStdin->remove(m_core->get_poll_manager()->get_torrent_poll());
@@ -113,7 +113,7 @@ Control::receive_shutdown() {
m_shutdownReceived = true;
if (!m_taskShutdown.is_queued())
taskScheduler.push(m_taskShutdown.prepare(cachedTime + 5 * 1000000));
priority_queue_insert(&taskScheduler, &m_taskShutdown, cachedTime + 5 * 1000000);
} else {
m_core->shutdown(true);