Skip to content

Commit

Permalink
Improve delete
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Sep 8, 2022
1 parent f5b6986 commit 7c4fcbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lwesp/src/lwesp/lwesp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,9 +1061,8 @@ lwespi_parse_received(lwesp_recv_t* rcv) {
esp.evt.evt.conn_active_close.conn = conn;
esp.evt.evt.conn_active_close.client = conn->status.f.client; /* Set if it is client or not */
/** @todo: Check if we really tried to close connection which was just closed */
esp.evt.evt.conn_active_close.forced = CMD_IS_CUR(
LWESP_CMD_TCPIP_CIPCLOSE); /* Set if action was forced = current action = close connection */
esp.evt.evt.conn_active_close.client = lwespOK;
esp.evt.evt.conn_active_close.forced = CMD_IS_CUR(LWESP_CMD_TCPIP_CIPCLOSE);
esp.evt.evt.conn_active_close.client = conn->status.f.client;
lwespi_send_conn_cb(conn, NULL); /* Send event */

/* Check if write buffer is set */
Expand Down

0 comments on commit 7c4fcbb

Please sign in to comment.