mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-14 17:46:45 +02:00
limit message queue to 2000
This commit is contained in:
parent
2d1fdf3422
commit
b17368d77e
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ void StreamSession::sendAsync(const shared_ptr<const msg::BaseMessage>& message,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//the writer will take care about old messages
|
//the writer will take care about old messages
|
||||||
while (messages_.size() > 10000)// chunk->getDuration() > 10000)
|
while (messages_.size() > 2000)// chunk->getDuration() > 10000)
|
||||||
messages_.pop();
|
messages_.pop();
|
||||||
|
|
||||||
if (sendNow)
|
if (sendNow)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue