don't prevent sending bytes just because the peer was waiting on the disk
This commit is contained in:
@@ -4751,7 +4751,7 @@ namespace libtorrent
|
||||
{
|
||||
if (m_disconnecting) return;
|
||||
|
||||
if (m_channel_state[upload_channel] & (peer_info::bw_network | peer_info::bw_limit)) return;
|
||||
if (m_channel_state[upload_channel] & peer_info::bw_network) return;
|
||||
|
||||
shared_ptr<torrent> t = m_torrent.lock();
|
||||
|
||||
@@ -4830,6 +4830,12 @@ namespace libtorrent
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_channel_state[upload_channel] & peer_info::bw_disk)
|
||||
m_ses.dec_disk_queue(upload_channel);
|
||||
m_channel_state[upload_channel] &= ~peer_info::bw_disk;
|
||||
}
|
||||
|
||||
if (!can_write())
|
||||
{
|
||||
|
Reference in New Issue
Block a user