merged connection_queue_fix from libtorrent_aio
This commit is contained in:
parent
2a08bb5feb
commit
377bba90fb
|
@ -124,6 +124,7 @@ namespace libtorrent
|
|||
// that are received in more than one HTTP response
|
||||
// TODO: if we make this be a disk_buffer_holder instead
|
||||
// we would save a copy sometimes
|
||||
// use allocate_disk_receive_buffer and release_disk_receive_buffer
|
||||
std::vector<char> m_piece;
|
||||
|
||||
// the number of bytes received in the current HTTP
|
||||
|
|
|
@ -294,7 +294,7 @@ namespace libtorrent
|
|||
--m_num_connecting;
|
||||
continue;
|
||||
}
|
||||
if (i->expires < next_expire)
|
||||
if (i->connecting && i->expires < next_expire)
|
||||
next_expire = i->expires;
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue