fixed bug when torrent file have announce-list but no valid trackers. #444
This commit is contained in:
parent
f8ea5ffa07
commit
e4ed68918b
|
@ -25,6 +25,8 @@ release 0.14.2
|
|||
* removed support for boost-1.33 and earlier (probably didn't work)
|
||||
* fixed potential freezes issues at shutdown
|
||||
* improved error message for python setup script
|
||||
* fixed bug when torrent file included announce-list, but no valid
|
||||
tracker urls
|
||||
|
||||
release 0.14.1
|
||||
|
||||
|
|
|
@ -575,6 +575,8 @@ namespace libtorrent
|
|||
}
|
||||
}
|
||||
|
||||
if (!m_urls.empty())
|
||||
{
|
||||
// shuffle each tier
|
||||
std::vector<announce_entry>::iterator start = m_urls.begin();
|
||||
std::vector<announce_entry>::iterator stop;
|
||||
|
@ -590,6 +592,7 @@ namespace libtorrent
|
|||
}
|
||||
std::random_shuffle(start, stop);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (m_urls.empty())
|
||||
|
|
Loading…
Reference in New Issue