mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-03 16:14:15 +00:00
if i2p.streaming.maxConcurrentStreams is zeor or negative than unlimited
This commit is contained in:
parent
2778b092e3
commit
7285caa4f1
@ -1705,7 +1705,7 @@ namespace stream
|
|||||||
DeletePacket (packet); // drop it, because previous should be connected
|
DeletePacket (packet); // drop it, because previous should be connected
|
||||||
return;
|
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 ());
|
LogPrint(eLogWarning, "Streaming: Number of streams exceeds ", m_Owner->GetStreamingMaxConcurrentStreams ());
|
||||||
DeletePacket (packet);
|
DeletePacket (packet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user