summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60451f8)
raw | patch | inline | side by side (parent: 60451f8)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Mon, 9 May 2016 09:15:26 +0000 (15:15 +0600) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 10 May 2016 05:37:36 +0000 (07:37 +0200) |
src/statsd.c | patch | blob | history |
diff --git a/src/statsd.c b/src/statsd.c
index 7336d37ac2a413479329636fec5ae313755c0032..ba8901b9e842ef494e2789190ee3a9046f03e05a 100644 (file)
--- a/src/statsd.c
+++ b/src/statsd.c
void *key;
void *value;
- pthread_mutex_lock (&metrics_lock);
-
if (network_thread_running)
{
network_thread_shutdown = 1;
}
network_thread_running = 0;
+ pthread_mutex_lock (&metrics_lock);
+
while (c_avl_pick (metrics_tree, &key, &value) == 0)
{
sfree (key);