Browse Source

if i2p.streaming.maxConcurrentStreams is zeor or negative than unlimited

pull/2094/merge
orignal 2 weeks ago
parent
commit
7285caa4f1
  1. 2
      libi2pd/Streaming.cpp

2
libi2pd/Streaming.cpp

@ -1705,7 +1705,7 @@ namespace stream @@ -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);

Loading…
Cancel
Save