diff --git a/apps/emqx/src/emqx_router_syncer.erl b/apps/emqx/src/emqx_router_syncer.erl index c1928108a..a694a7134 100644 --- a/apps/emqx/src/emqx_router_syncer.erl +++ b/apps/emqx/src/emqx_router_syncer.erl @@ -221,8 +221,10 @@ replyctx_send(Result, {MRef, Pid}) -> %% -run_batch(Batch) -> - emqx_router:do_batch(Batch). +run_batch(Batch) when map_size(Batch) > 0 -> + emqx_router:do_batch(Batch); +run_batch(_Empty) -> + #{}. %%