Calling EP_CLIENT on close

This commit is contained in:
Sergey Lyubka committed 2014-03-03 10:27:56 +00:00
1 parent e41df3cf9c
commit f521999ea6
1 file changed
+1 -1
+1 -1
View File
@@ -4752,7 +4752,7 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
DBG(("%p %d closing", conn, conn->endpoint_type)); DBG(("%p %d closing", conn, conn->endpoint_type));
if (conn->endpoint_type == EP_CLIENT && nc->recv_iobuf.len > 0) { if (conn->endpoint_type == EP_CLIENT && nc->recv_iobuf.len > 0) {
// call_http_client_handler(conn); call_http_client_handler(conn);
} }
call_user(conn, MG_CLOSE); call_user(conn, MG_CLOSE);