From: Alan T. DeKok Date: Mon, 27 Jul 2015 16:45:16 +0000 (-0400) Subject: Don't check for spawn in area where it's false X-Git-Tag: release_3_0_10~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1923a4de2b0428ac282f7eef6c1e774a127ceb6;p=thirdparty%2Ffreeradius-server.git Don't check for spawn in area where it's false --- diff --git a/src/main/connection.c b/src/main/connection.c index 6f762dd199c..0c7b120c6e9 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -836,8 +836,8 @@ static void *fr_connection_get_internal(fr_connection_pool_t *pool, bool spawn) pool->last_at_max = now; } - if (spawn) pthread_mutex_unlock(&pool->mutex); - + pthread_mutex_unlock(&pool->mutex); + if (!RATE_LIMIT_ENABLED || complain) { ERROR("%s: No connections available and at max connection limit", pool->log_prefix); }