fix logging issue

This commit is contained in:
arvidn 2015-11-27 14:04:46 -05:00
parent ce329eff6b
commit 51df32a25b
1 changed files with 2 additions and 1 deletions

View File

@ -9928,13 +9928,14 @@ namespace libtorrent
&& !settings().get_bool(settings_pack::announce_to_all_tiers)) break; && !settings().get_bool(settings_pack::announce_to_all_tiers)) break;
} }
if (next_announce <= now) next_announce = now;
#ifndef TORRENT_DISABLE_LOGGING #ifndef TORRENT_DISABLE_LOGGING
debug_log("*** update tracker timer: next_announce < now %d" debug_log("*** update tracker timer: next_announce < now %d"
" m_waiting_tracker: %d next_announce_in: %d" " m_waiting_tracker: %d next_announce_in: %d"
, next_announce <= now, m_waiting_tracker , next_announce <= now, m_waiting_tracker
, int(total_seconds(now - next_announce))); , int(total_seconds(now - next_announce)));
#endif #endif
if (next_announce <= now) next_announce = now;
// don't re-issue the timer if it's the same expiration time as last time // don't re-issue the timer if it's the same expiration time as last time
// if m_waiting_tracker is false, expires_at() is undefined // if m_waiting_tracker is false, expires_at() is undefined