diff options
Diffstat (limited to 'src/analysis/db')
-rw-r--r-- | src/analysis/db/client.c | 3 |
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 */ |