fix release build and tune want_tick

This commit is contained in:
Arvid Norberg 2015-05-26 20:09:19 +00:00
parent f1c998c1ef
commit 06bf225237
4 changed files with 6 additions and 6 deletions

View File

@ -232,7 +232,7 @@ public:
int data_size() const { return int(m_map.size()); } int data_size() const { return int(m_map.size()); }
#ifndef TORRENT_DISABLE_LOGGING #if defined TORRENT_DEBUG
void print_state(std::ostream& os) const void print_state(std::ostream& os) const
{ m_table.print_state(os); } { m_table.print_state(os); }
#endif #endif

View File

@ -5909,7 +5909,7 @@ retry:
{ {
if (m_pending_auto_manage || m_abort) return; if (m_pending_auto_manage || m_abort) return;
// we we recalculated auto-managed torrents less than a second ago, // we recalculated auto-managed torrents less than a second ago,
// put it off one second. // put it off one second.
if (time_now() - m_last_auto_manage < seconds(1)) if (time_now() - m_last_auto_manage < seconds(1))
{ {

View File

@ -7872,7 +7872,7 @@ namespace libtorrent
return true; return true;
// if we don't get ticks we won't become inactive // if we don't get ticks we won't become inactive
if (!m_inactive) return true; if (m_allow_peers && !m_inactive) return true;
return false; return false;
} }