Commit cd6005c8 authored by Sergey Lyubka's avatar Sergey Lyubka

Calling thread_stop() before free-ing conn

parent 6d14ed3a
......@@ -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);
}
free(conn);
}
// Signal master that we're done with connection and exiting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment