merged connection_queue_fix from libtorrent_aio

This commit is contained in:
Arvid Norberg 2012-07-14 22:49:29 +00:00
parent 2a08bb5feb
commit 377bba90fb
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;
}