We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31045e6 commit 746675cCopy full SHA for 746675c
src/mg_rpc.c
@@ -769,8 +769,8 @@ bool mg_rpc_vcallf(struct mg_rpc *c, const struct mg_str method,
769
const struct mg_str pprefix = mg_mk_str_n(prefb.buf, prefb.len);
770
771
bool result = false;
772
+ bool enqueue = (opts == NULL ? true : !opts->no_queue);
773
if (opts == NULL || !opts->broadcast) {
- bool enqueue = (opts == NULL ? true : !opts->no_queue);
774
result = mg_rpc_dispatch_frame(c, src, dst, id, tag, key, NULL /* ci */,
775
enqueue, pprefix, args_jsonf, ap);
776
} else {
@@ -780,9 +780,8 @@ bool mg_rpc_vcallf(struct mg_rpc *c, const struct mg_str method,
780
!ci->ch->is_broadcast_enabled(ci->ch)) {
781
continue;
782
}
783
- result |=
784
- mg_rpc_dispatch_frame(c, src, dst, id, tag, key, ci,
785
- false /* enqueue */, pprefix, args_jsonf, ap);
+ result |= mg_rpc_dispatch_frame(c, src, dst, id, tag, key, ci, enqueue,
+ pprefix, args_jsonf, ap);
786
787
788
mbuf_free(&prefb);
0 commit comments