Skip to content
Snippets Groups Projects
Commit 3e39348b authored by deuce's avatar deuce
Browse files

session isn't a pointer here.

parent 4901a235
Branches
Tags
No related merge requests found
...@@ -4100,7 +4100,7 @@ void http_session_thread(void* arg) ...@@ -4100,7 +4100,7 @@ void http_session_thread(void* arg)
close_socket(&session.socket); close_socket(&session.socket);
sem_wait(&session.output_thread_terminated); sem_wait(&session.output_thread_terminated);
RingBufDispose(&session.outbuf); RingBufDispose(&session.outbuf);
pthread_mutex_destroy(&session->outbuf_write); pthread_mutex_destroy(&session.outbuf_write);
lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in host.can: %s", session.socket, host_name); lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in host.can: %s", session.socket, host_name);
thread_down(); thread_down();
session_threads--; session_threads--;
...@@ -4113,7 +4113,7 @@ void http_session_thread(void* arg) ...@@ -4113,7 +4113,7 @@ void http_session_thread(void* arg)
close_socket(&session.socket); close_socket(&session.socket);
sem_wait(&session.output_thread_terminated); sem_wait(&session.output_thread_terminated);
RingBufDispose(&session.outbuf); RingBufDispose(&session.outbuf);
pthread_mutex_destroy(&session->outbuf_write); pthread_mutex_destroy(&session.outbuf_write);
lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in ip.can: %s", session.socket, session.host_ip); lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in ip.can: %s", session.socket, session.host_ip);
thread_down(); thread_down();
session_threads--; session_threads--;
...@@ -4226,7 +4226,7 @@ void http_session_thread(void* arg) ...@@ -4226,7 +4226,7 @@ void http_session_thread(void* arg)
sem_wait(&session.output_thread_terminated); sem_wait(&session.output_thread_terminated);
sem_destroy(&session.output_thread_terminated); sem_destroy(&session.output_thread_terminated);
RingBufDispose(&session.outbuf); RingBufDispose(&session.outbuf);
pthread_mutex_destroy(&session->outbuf_write); pthread_mutex_destroy(&session.outbuf_write);
active_clients--; active_clients--;
update_clients(); update_clients();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment