mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Calling thread_stop() before free-ing conn
This commit is contained in:
parent
6d14ed3a18
commit
cd6005c86f
@ -5164,12 +5164,11 @@ static void *worker_thread(void *thread_func_param) {
|
||||
|
||||
close_connection(conn);
|
||||
}
|
||||
free(conn);
|
||||
|
||||
if (ctx->callbacks.thread_stop != NULL) {
|
||||
ctx->callbacks.thread_stop(&conn->request_info.user_data,
|
||||
&conn->request_info.conn_data);
|
||||
&conn->request_info.conn_data);
|
||||
}
|
||||
free(conn);
|
||||
}
|
||||
|
||||
// Signal master that we're done with connection and exiting
|
||||
|
Loading…
Reference in New Issue
Block a user