projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
session/client counting utils to header
[pazpar2-moved-to-github.git]
/
src
/
client.c
diff --git
a/src/client.c
b/src/client.c
index
a7649b4
..
662937f
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-90,14
+90,7
@@
static int client_use(int delta)
int clients_count(void)
{
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 */
}
/** \brief Represents client state for a connection to one search target */