merged fix RC_0_16

This commit is contained in:
Arvid Norberg 2012-11-02 04:34:17 +00:00
parent 52ece49121
commit 0327c73263
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* fix uTP edge case where udp socket buffer fills up
* fix nagle implementation in uTP
* fix potential crash when using torrent_handle::add_piece
* added missing add_torrent_alert to python binding
0.16.5 release

View File

@ -3103,6 +3103,11 @@ namespace libtorrent
TORRENT_ASSERT(valid_metadata());
// it's possible to get here if the last piece was downloaded
// from peers and inserted with add_piece at the same time.
// if we're a seed, we won't have a piece picker, and can't continue
if (is_seed()) return;
TORRENT_ASSERT(!m_picker->have_piece(index));
state_updated();