fixed bug where one allowed-fast message would be sent even when disabled

This commit is contained in:
Arvid Norberg 2009-06-28 00:47:49 +00:00
parent e9bd8f6e1f
commit cbc740ee4f
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,8 @@ release 0.14.5
the resume data
* fixed resume data compatibility with 0.13
* fixed rare piece-picker bug
* fixed bug where one allowed-fast message would be sent even when
disabled
release 0.14.4

View File

@ -448,6 +448,8 @@ namespace libtorrent
}
int num_allowed_pieces = m_ses.settings().allowed_fast_set_size;
if (num_allowed_pieces == 0) return;
int num_pieces = t->torrent_file().num_pieces();
if (num_allowed_pieces >= num_pieces)