forked from premiere/premiere-libtorrent
fixed bug where one allowed-fast message would be sent even when disabled
This commit is contained in:
parent
e9bd8f6e1f
commit
cbc740ee4f
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue