int clients_count(void)
{
- int total = 0;
- if (g_mutex)
- {
- yaz_mutex_enter(g_mutex);
- total = no_clients;
- yaz_mutex_leave(g_mutex);
- }
- return total;
+ return client_use(0);
}
/** \brief Represents client state for a connection to one search target */