parent
441c4de1e3
commit
d071961473
|
@ -341,6 +341,7 @@ private:
|
|||
{
|
||||
assert(amount == limit - m_current_quota);
|
||||
bw_queue_entry<PeerConnection> qe = m_queue.front();
|
||||
assert(qe.max_block_size > 0);
|
||||
m_queue.pop_front();
|
||||
|
||||
shared_ptr<Torrent> t = qe.peer->associated_torrent().lock();
|
||||
|
|
|
@ -189,6 +189,7 @@ namespace libtorrent
|
|||
, m_download_limit(bandwidth_limit::inf)
|
||||
, m_peer_info(peerinfo)
|
||||
, m_speed(slow)
|
||||
, m_connection_ticket(-1)
|
||||
, m_remote_bytes_dled(0)
|
||||
, m_remote_dl_rate(0)
|
||||
, m_remote_dl_update(time_now())
|
||||
|
|
|
@ -645,6 +645,7 @@ namespace libtorrent
|
|||
if (j->finished + j->writing >= complete) return;
|
||||
using std::swap;
|
||||
swap(*j, *i);
|
||||
if (j == m_downloads.begin()) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue