merged fixes from RC_1_0

This commit is contained in:
Arvid Norberg 2015-04-24 04:42:26 +00:00
parent 31a87c26f0
commit 924fb5d03c
2 changed files with 6 additions and 1 deletions

View File

@ -69,6 +69,10 @@
* almost completely changed the storage interface (for custom storage)
* added support for hashing pieces in multiple threads
* fixed bug when max_peerlist_size was set to 0
* fix issues with missing exported symbols when building dll
* fix division by zero bug in edge case while connecting peers
1.0.4 release
* fix bug in python binding for file_progress on torrents with no metadata

View File

@ -719,7 +719,8 @@ namespace libtorrent
// add a new entry
error_code ec;
if (int(m_peers.size()) >= state->max_peerlist_size)
if (state->max_peerlist_size
&& int(m_peers.size()) >= state->max_peerlist_size)
{
// this may invalidate our iterator!
erase_peers(state, force_erase);