From 52797133a472266c9e06fb5f66bd8793e443bd7e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 20 Jan 2020 12:10:44 +0100 Subject: fix signal initialization race on startup with shutdown --- src/exchangedb/plugin_exchangedb_postgres.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/exchangedb') 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); -- cgit v1.2.3