aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 12:10:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 12:10:44 +0100
commit52797133a472266c9e06fb5f66bd8793e443bd7e (patch)
tree0852b2d8d445fd22c58c9f6900fb30f94cfbc0e5 /src/exchangedb/plugin_exchangedb_postgres.c
parent8a4201c43bd70032eecfeaa41a5d0b56a391c66a (diff)
fix signal initialization race on startup with shutdown
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 9ccf96b54..4d0b1bb6a 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -7405,8 +7405,7 @@ libtaler_plugin_exchangedb_postgres_done (void *cls)
/* If we launched a session for the main thread,
kill it here before we unload */
- if (NULL != pg->main_session)
- db_conn_destroy (pg->main_session);
+ db_conn_destroy (pg->main_session);
GNUNET_free (pg->connection_cfg_str);
GNUNET_free (pg->sql_dir);
GNUNET_free (pg->currency);