fix test_pex
This commit is contained in:
@@ -445,7 +445,7 @@ namespace libtorrent { namespace
|
|||||||
static ptime global_last = min_time();
|
static ptime global_last = min_time();
|
||||||
|
|
||||||
int num_peers = m_torrent.num_peers();
|
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
|
// 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
|
// allow pex messages to be sent 5 seconds apart if there isn't
|
||||||
|
Reference in New Issue
Block a user