summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_network.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index c11f54d..6483f98 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -199,7 +199,7 @@ static int maybe_send_queue(struct mgcp_endpoint *endp,
int rc;
/* Queue up to four messages per endpoint */
- if (++endp->compr_queue_size != 4)
+ if (++endp->compr_queue_size < endp->tcfg->compress_batch)
return 0;
/* Allocate the outgoing data */