Browse Source

websocket: set the field for event route execution on timer removing

- GH #3950

(cherry picked from commit e77ba1cdf80b384bc55cc457d280b5fc0aef80db)
Daniel-Constantin Mierla 2 months ago
parent
commit
6de03f80bd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/websocket/ws_conn.c

+ 1 - 0
src/modules/websocket/ws_conn.c

@@ -708,6 +708,7 @@ void ws_timer(unsigned int ticks, void *param)
 					LM_DBG("ws structure without active tcp connection\n");
 					wsc->state = WS_S_REMOVING;
 					wsc->rmticks = get_ticks();
+					wsc->run_event = 1;
 				} else {
 					tcpconn_put(con);
 				}