summaryrefslogtreecommitdiff
path: root/src/analysis/db
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-05 22:53:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-05 22:53:24 (GMT)
commit1a85f36e0505d75a51ab7b7f2c5078da7ef6bd98 (patch)
treea9a7d542f0ed00f418b61122a27ec9f1927e646f /src/analysis/db
parent3d65cfcb6403d169b52045a9e5c242ad081539a7 (diff)
Made server connections easier while running analysis.
Diffstat (limited to 'src/analysis/db')
-rw-r--r--src/analysis/db/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analysis/db/client.c b/src/analysis/db/client.c
index c608bfa..9252ccc 100644
--- a/src/analysis/db/client.c
+++ b/src/analysis/db/client.c
@@ -856,7 +856,8 @@ void g_hub_client_stop(GHubClient *client)
ret = close(fd);
if (ret == -1) LOG_ERROR_N("close");
- g_thread_join(client->update);
+ if (g_thread_self() != client->update)
+ g_thread_join(client->update);
/* Environnement TLS */