fix release build and tune want_tick
This commit is contained in:
parent
f1c998c1ef
commit
06bf225237
|
@ -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
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue