From 23e084718897f948d9256b898fc3a2a6ff582341 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 22 Jul 2021 15:47:24 +0200 Subject: -fix #6933 --- src/exchangedb/plugin_exchangedb_postgres.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 7a91a348d..d0330d784 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -243,7 +243,8 @@ postgres_get_session (void *cls) session = pthread_getspecific (pc->db_conn_threadlocal); if (NULL != session) { - GNUNET_PQ_reconnect_if_down (session->conn); + if (NULL == session->transaction_name) + GNUNET_PQ_reconnect_if_down (session->conn); return session; } { -- cgit v1.2.3