mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Make evbuffer_commit_space trigger callbacks.
svn:r1163
This commit is contained in:
parent
829b52b6c1
commit
b01891fe1d
2
buffer.c
2
buffer.c
@ -476,8 +476,10 @@ evbuffer_commit_space(struct evbuffer *buf, size_t size)
|
|||||||
|
|
||||||
chain->off += size;
|
chain->off += size;
|
||||||
buf->total_len += size;
|
buf->total_len += size;
|
||||||
|
buf->n_add_for_cb += size;
|
||||||
|
|
||||||
result = 0;
|
result = 0;
|
||||||
|
evbuffer_invoke_callbacks(buf);
|
||||||
done:
|
done:
|
||||||
EVBUFFER_UNLOCK(buf, EVTHREAD_WRITE);
|
EVBUFFER_UNLOCK(buf, EVTHREAD_WRITE);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user