From 83960d287d775e01a08b51312f9fc3118403524f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 22 Oct 2013 07:53:36 +0000 Subject: [PATCH] fix test_pex --- src/ut_pex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ut_pex.cpp b/src/ut_pex.cpp index f53a926f8..aeec9215d 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 == 0) 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