Skip to content

Commit

Permalink
if i2p.streaming.maxConcurrentStreams is zeor or negative than unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Nov 11, 2024
1 parent 2778b09 commit 7285caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ namespace stream
DeletePacket (packet); // drop it, because previous should be connected
return;
}
if ((int)m_Streams.size () > m_Owner->GetStreamingMaxConcurrentStreams ())
if (m_Owner->GetStreamingMaxConcurrentStreams () > 0 && (int)m_Streams.size () > m_Owner->GetStreamingMaxConcurrentStreams ())
{
LogPrint(eLogWarning, "Streaming: Number of streams exceeds ", m_Owner->GetStreamingMaxConcurrentStreams ());
DeletePacket (packet);
Expand Down

0 comments on commit 7285caa

Please sign in to comment.