mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
Prevent duplicate event_del on fd
This commit is contained in:
parent
b0e99244ce
commit
10fe4ef300
1
http.c
1
http.c
@ -1265,6 +1265,7 @@ evhttp_connection_reset_(struct evhttp_connection *evcon)
|
|||||||
|
|
||||||
shutdown(evcon->fd, EVUTIL_SHUT_WR);
|
shutdown(evcon->fd, EVUTIL_SHUT_WR);
|
||||||
evutil_closesocket(evcon->fd);
|
evutil_closesocket(evcon->fd);
|
||||||
|
bufferevent_setfd(evcon->bufev, -1);
|
||||||
evcon->fd = -1;
|
evcon->fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user