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

Fix session leak on recycle.

parent 513c1a4d
Branches
Tags
No related merge requests found
...@@ -5096,6 +5096,11 @@ void DLLCALL web_server(void* arg) ...@@ -5096,6 +5096,11 @@ void DLLCALL web_server(void* arg)
served++; served++;
} }
if(session) {
pthread_mutex_unlock(&session->struct_filled);
session=NULL;
}
/* Wait for active clients to terminate */ /* Wait for active clients to terminate */
if(active_clients) { if(active_clients) {
lprintf(LOG_DEBUG,"%04d Waiting for %d active clients to disconnect..." lprintf(LOG_DEBUG,"%04d Waiting for %d active clients to disconnect..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment