mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-05 10:16:08 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
b04d13cd72
4
http.c
4
http.c
@ -364,8 +364,6 @@ evhttp_write_buffer(struct evhttp_connection *evcon,
|
||||
evcon->cb = cb;
|
||||
evcon->cb_arg = arg;
|
||||
|
||||
bufferevent_enable(evcon->bufev, EV_WRITE);
|
||||
|
||||
/* Disable the read callback: we don't actually care about data;
|
||||
* we only care about close detection. (We don't disable reading,
|
||||
* since we *do* want to learn about any close events.) */
|
||||
@ -374,6 +372,8 @@ evhttp_write_buffer(struct evhttp_connection *evcon,
|
||||
evhttp_write_cb,
|
||||
evhttp_error_cb,
|
||||
evcon);
|
||||
|
||||
bufferevent_enable(evcon->bufev, EV_WRITE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user