forked from premiere/premiere-libtorrent
fixed udp-tracker connection bug
This commit is contained in:
parent
b786ec9125
commit
9afec7370b
|
@ -260,8 +260,8 @@ namespace libtorrent
|
|||
int interval = detail::read_int32(buf);
|
||||
int incomplete = detail::read_int32(buf);
|
||||
int complete = detail::read_int32(buf);
|
||||
int num_peers = (len - 24) / 6;
|
||||
if ((len - 24) % 6 != 0)
|
||||
int num_peers = (len - 20) / 6;
|
||||
if ((len - 20) % 6 != 0)
|
||||
{
|
||||
if (has_requester())
|
||||
requester().tracker_request_error(
|
||||
|
|
Loading…
Reference in New Issue