fix build

This commit is contained in:
Arvid Norberg 2011-11-15 06:47:02 +00:00
parent c4232065d8
commit 0320546fee
2 changed files with 4 additions and 1 deletions

View File

@ -497,6 +497,9 @@ namespace libtorrent
--m_disk_queues[channel];
}
void add_to_update_queue(boost::weak_ptr<torrent> t)
{ m_state_updates.push_back(t); }
// private:
void update_connections_limit();

View File

@ -8032,7 +8032,7 @@ ctx->set_verify_callback(verify_function, ec);
// add it to the list twice
if (!m_state_subscription || m_in_state_updates) return;
m_ses.m_state_updates.push_back(shared_from_this());
m_ses.add_to_update_queue(shared_from_this());
m_in_state_updates = true;
}