disable announce timers when paused

This commit is contained in:
Arvid Norberg 2008-07-18 22:57:49 +00:00
parent 21dff61cb5
commit 8f1455919a
1 changed files with 1 additions and 1 deletions

View File

@ -4261,7 +4261,7 @@ namespace libtorrent
st.next_announce = boost::posix_time::seconds(
total_seconds(next_announce() - now));
if (st.next_announce.is_negative())
if (st.next_announce.is_negative() || is_paused())
st.next_announce = boost::posix_time::seconds(0);
st.announce_interval = boost::posix_time::seconds(m_duration);