mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-19 12:36:42 +02:00
if i2p.streaming.maxConcurrentStreams is zeor or negative than unlimited
This commit is contained in:
parent
2778b092e3
commit
7285caa4f1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue