mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Reduced max size of queue.
This commit is contained in:
parent
8aa62cfef7
commit
7bbde2d6c7
|
@ -40,7 +40,7 @@ JitterBuffer *create_queue(unsigned int capacity)
|
||||||
{
|
{
|
||||||
unsigned int size = 1;
|
unsigned int size = 1;
|
||||||
|
|
||||||
while (size <= (capacity + 4) * 2) {
|
while (size <= capacity) {
|
||||||
size *= 2;
|
size *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user