be_filter: actually disable output_filter during processing output

IOW: Make the code do what the comment says it should do.
This commit is contained in:
Simon Perreault 2016-02-28 16:49:15 -05:00 committed by Azat Khuzhin
parent 2a71b33233
commit c031215d53

View File

@ -345,7 +345,8 @@ be_filter_process_output(struct bufferevent_filtered *bevf,
/* disable the callback that calls this function
when the user adds to the output buffer. */
evbuffer_cb_set_flags(bufev->output, bevf->outbuf_cb, 0);
evbuffer_cb_clear_flags(bufev->output, bevf->outbuf_cb,
EVBUFFER_CB_ENABLED);
do {
int processed = 0;