forked from premiere/premiere-libtorrent
merged fixes from RC_0_16
This commit is contained in:
parent
90e7a4c9e3
commit
b911129a12
|
@ -454,7 +454,7 @@ void traversal_algorithm::status(dht_lookup& l)
|
|||
observer& o = **i;
|
||||
if (o.flags & observer::flag_queried)
|
||||
{
|
||||
last_sent = (std::min)(last_sent, total_seconds(now - o.sent()));
|
||||
last_sent = (std::min)(last_sent, int(total_seconds(now - o.sent())));
|
||||
if (o.has_short_timeout()) ++l.first_timeout;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1190,7 +1190,9 @@ namespace libtorrent
|
|||
#ifdef TORRENT_DEBUG
|
||||
else
|
||||
{
|
||||
#if TORRENT_USE_I2P
|
||||
if (!p->is_i2p_addr)
|
||||
#endif
|
||||
{
|
||||
std::pair<iterator, iterator> range = find_peers(p->address());
|
||||
TORRENT_ASSERT(range.second - range.first == 1);
|
||||
|
|
Loading…
Reference in New Issue