From 5dea631708c0cecea51ac50b08a4b991b913854c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 2 Feb 2014 10:05:32 +0000 Subject: [PATCH] minor fixes from massaroddel --- src/lt_trackers.cpp | 2 +- src/ut_pex.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lt_trackers.cpp b/src/lt_trackers.cpp index 09140d8b2..f6b24780a 100644 --- a/src/lt_trackers.cpp +++ b/src/lt_trackers.cpp @@ -55,7 +55,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/bencode.hpp" #include "libtorrent/torrent.hpp" #include "libtorrent/extensions.hpp" -#include "libtorrent/extensions/ut_metadata.hpp" +#include "libtorrent/extensions/lt_trackers.hpp" #include "libtorrent/alert_types.hpp" #include "libtorrent/escape_string.hpp" #include "libtorrent/parse_url.hpp" diff --git a/src/ut_pex.cpp b/src/ut_pex.cpp index f18afedd2..4c3aca995 100644 --- a/src/ut_pex.cpp +++ b/src/ut_pex.cpp @@ -445,7 +445,7 @@ namespace libtorrent { namespace static ptime global_last = min_time(); int num_peers = m_torrent.num_peers(); - if (num_peers == 1) return; + if (num_peers <= 1) return; // don't send pex messages more often than 1 every 100 ms, and // allow pex messages to be sent 5 seconds apart if there isn't