summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-27 18:57:39 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-27 18:57:39 +0100
commit88627af6a397a41d476a14a4c85136676fb3e59e (patch)
tree40e28bb023616aa4256a9f9b8ea8f5e7c168dde1 /src
parent5ec474a0e8b9a6d1b8d45cc70d13f98cfaa0ef78 (diff)
downloadexchange-88627af6a397a41d476a14a4c85136676fb3e59e.tar.gz
exchange-88627af6a397a41d476a14a4c85136676fb3e59e.tar.bz2
exchange-88627af6a397a41d476a14a4c85136676fb3e59e.zip
fix #6726
Diffstat (limited to 'src')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
-rw-r--r--src/util/taler-exchange-secmod-rsa.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index cd3fc22f..8f458f5e 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -383,6 +383,8 @@ sign_worker (void *cls)
}
GNUNET_assert (0 == pthread_mutex_lock (&work_lock));
}
+ if (! in_shutdown)
+ break;
/* queue is empty, wait for work */
GNUNET_assert (0 ==
pthread_cond_wait (&work_cond,
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 41d78bcf..27d3d7a9 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -446,6 +446,8 @@ sign_worker (void *cls)
}
GNUNET_assert (0 == pthread_mutex_lock (&work_lock));
}
+ if (! in_shutdown)
+ break;
/* queue is empty, wait for work */
GNUNET_assert (0 ==
pthread_cond_wait (&work_cond,