Fix bug:Repeat call uh_connection_destroy

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-11-14 21:07:23 +08:00
parent 1c8051decc
commit a01d37430d
1 changed files with 0 additions and 1 deletions

View File

@ -51,7 +51,6 @@ static void connection_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents
struct uh_connection *con = container_of(w, struct uh_connection, timer_watcher);
uh_log_debug("connection(%p) timeout", con);
uh_send_error(con, UH_STATUS_REQUEST_TIMEOUT, NULL);
uh_connection_destroy(con);
}
static int uh_con_reuse(struct uh_connection *con)