merged fixes from RC_1_0
This commit is contained in:
parent
31a87c26f0
commit
924fb5d03c
|
@ -69,6 +69,10 @@
|
||||||
* almost completely changed the storage interface (for custom storage)
|
* almost completely changed the storage interface (for custom storage)
|
||||||
* added support for hashing pieces in multiple threads
|
* 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
|
1.0.4 release
|
||||||
|
|
||||||
* fix bug in python binding for file_progress on torrents with no metadata
|
* fix bug in python binding for file_progress on torrents with no metadata
|
||||||
|
|
|
@ -719,7 +719,8 @@ namespace libtorrent
|
||||||
// add a new entry
|
// add a new entry
|
||||||
error_code ec;
|
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!
|
// this may invalidate our iterator!
|
||||||
erase_peers(state, force_erase);
|
erase_peers(state, force_erase);
|
||||||
|
|
Loading…
Reference in New Issue