Skip to content

Commit

Permalink
remove bogus flushing for mi_json
Browse files Browse the repository at this point in the history
TODO: find a proper way for handling flushing, since the current
implementation leads to a infinite loop

(cherry picked from commit 0d47a32)
(cherry picked from commit bd38945)
  • Loading branch information
razvancrainea committed Dec 11, 2013
1 parent a828365 commit d6e96b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mi_json/http_fnc.c
Expand Up @@ -311,8 +311,9 @@ struct mi_root* mi_json_run_mi_cmd(const str* miCmd, const str* params,
html_page_data.buffer.s = buffer->s;
html_page_data.buffer.len = buffer->len;

/* FIXME: find a proper way for handling flushing */
mi_rpl = run_mi_cmd(f, mi_cmd,
(mi_flush_f *)mi_json_flush_tree, &html_page_data);
NULL, &html_page_data);
if (mi_rpl == NULL) {
LM_ERR("failed to process the command\n");
if (mi_cmd) free_mi_tree(mi_cmd);
Expand Down

0 comments on commit d6e96b3

Please sign in to comment.