[ovs-dev,2/3] Run JSON RPC if there is backlog
diff mbox series

Message ID 20200207084033.23018-2-anton.ivanov@cambridgegreys.com
State New
Headers show
Series
  • Untitled series #157275
Related show

Commit Message

Anton Ivanov Feb. 7, 2020, 8:40 a.m. UTC
From: Anton Ivanov <anton.ivanov@cambridgegreys.com>

Run JSON RPC every time there is a backlog and not only if
backlog was created on this iteration.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
---
 lib/jsonrpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
index ed748dbde..fc354e517 100644
--- a/lib/jsonrpc.c
+++ b/lib/jsonrpc.c
@@ -266,7 +266,7 @@  jsonrpc_send(struct jsonrpc *rpc, struct jsonrpc_msg *msg)
                      rpc->output_count, rpc->backlog);
     }
 
-    if (rpc->backlog == length) {
+    if (rpc->backlog >= length) {
         jsonrpc_run(rpc);
     }
     return rpc->status;