From 8f1455919abcaca9147c131b0525dffc3c31972b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 18 Jul 2008 22:57:49 +0000 Subject: [PATCH] disable announce timers when paused --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 3cba55d65..621e2eab0 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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);