send interested if we sent max requests before

This commit is contained in:
orignal
2026-08-19 21:01:50 -04:00
parent 561958ee32
commit b5c2e7d9ea
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1005,7 +1005,7 @@ namespace torrents
if (index < m_RemoteBitfield.size ())
{
m_RemoteBitfield.set (index);
if (m_NumRequests < MAX_NUM_REQUESTS && m_Torrent && !m_Torrent->IsComplete ())
if (m_Torrent && !m_Torrent->IsComplete ())
{
Piece& piece = m_Torrent->GetPiece (index);
if (!piece.IsComplete ())
+1 -1
View File
@@ -264,7 +264,7 @@ namespace torrents
uint64_t GetDownloadRate () const { return m_DownloadRate; }
uint64_t GetUploadRate () const { return m_UploadRate; }
bool IsDownloading () const { return m_NumRequests > 0; }
bool IsUploading () const { return m_NumPieces > 0; }
bool IsUploading () const { return m_NumPieces > 0 || (m_Stream && m_Stream->GetSendBufferSize () > 0); }
private: