mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
* 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:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user