mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-14 09:36:41 +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;
|
||||
|
||||
//the writer will take care about old messages
|
||||
while (messages_.size() > 10000)// chunk->getDuration() > 10000)
|
||||
while (messages_.size() > 2000)// chunk->getDuration() > 10000)
|
||||
messages_.pop();
|
||||
|
||||
if (sendNow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue