diff options
author | Simon Perreault <sperreault@jive.com> | 2016-02-28 16:49:15 -0500 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2016-04-18 13:32:05 +0300 |
commit | c031215d532c97f1d82efd672ecd622d31d3342d (patch) | |
tree | e32ffc941f1ba4b240d7bb88b8ea9cc024db5053 /bufferevent_filter.c | |
parent | 2a71b33233808bb47888056e8c6b6e9dde82977b (diff) | |
download | libevent-c031215d532c97f1d82efd672ecd622d31d3342d.tar.gz |
be_filter: actually disable output_filter during processing output
IOW: Make the code do what the comment says it should do.
Diffstat (limited to 'bufferevent_filter.c')
-rw-r--r-- | bufferevent_filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bufferevent_filter.c b/bufferevent_filter.c index 6c3ffc4f..5d5f992b 100644 --- a/bufferevent_filter.c +++ b/bufferevent_filter.c @@ -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; |