diff options
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 30b4227..c2c2368 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1294,9 +1294,11 @@ void *clientwr(void *arg) { printf("clientwr: got new request\n"); server->newrq = 0; } - } + } else + server->newrq = 0; pthread_mutex_unlock(&server->newrq_mutex); - + + printf("clientwr: processing request queue\n"); for (i = 0; i < MAX_REQUESTS; i++) { pthread_mutex_lock(&server->newrq_mutex); while (!server->requests[i].buf && i < MAX_REQUESTS) |