From baecc64131aac7f38e469ce2673665702e4ebd01 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 7 Apr 2007 03:05:59 +0000 Subject: [PATCH] fix to previous timer check-in that broke the api --- include/libtorrent/torrent_handle.hpp | 2 +- src/torrent_handle.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 2a797e0d0..2a87907af 100755 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -289,7 +289,7 @@ namespace libtorrent // This overrides the default announce interval, and no // announce will take place until the given time has // timed out. - void force_reannounce(time_duration) const; + void force_reannounce(boost::posix_time::time_duration) const; // returns the name of this torrent, in case it doesn't // have metadata it returns the name assigned to it diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 97d58d154..12e2dd49e 100755 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -640,7 +640,7 @@ namespace libtorrent } void torrent_handle::force_reannounce( - time_duration duration) const + boost::posix_time::time_duration duration) const { INVARIANT_CHECK; @@ -652,7 +652,7 @@ namespace libtorrent using boost::posix_time::second_clock; t->force_tracker_request(time_now() - + duration); + + seconds(duration.total_seconds())); } void torrent_handle::force_reannounce() const