]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
formatting / comments
authorAlan T. DeKok <aland@freeradius.org>
Mon, 27 Jul 2015 15:55:07 +0000 (11:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 27 Jul 2015 15:55:07 +0000 (11:55 -0400)
src/main/connection.c

index 446cd78123efecb93f3396df91a861c69028afd7..21ce6dd60d21bfc4f855d66e1f4ca21765cc6568 100644 (file)
@@ -1297,6 +1297,7 @@ int fr_connection_pool_reconnect(fr_connection_pool_t *pool)
         *      reconnection.
         */
        pthread_mutex_lock(&pool->mutex);
+
        /*
         *      We want to ensure at least 'start' connections
         *      have been reconnected. We can't call reconnect
@@ -1310,6 +1311,10 @@ int fr_connection_pool_reconnect(fr_connection_pool_t *pool)
 
                fr_connection_close_internal(pool, this);
        }
+
+       /*
+        *      Mark all of the remaining connections as "needs reconnecting".
+        */
        for (this = pool->head; this; this = this->next) this->needs_reconnecting = true;
 
        pthread_mutex_unlock(&pool->mutex);