commit 88627af6a397a41d476a14a4c85136676fb3e59e
parent 5ec474a0e8b9a6d1b8d45cc70d13f98cfaa0ef78
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 27 Jan 2021 18:57:39 +0100
fix #6726
Diffstat:
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
@@ -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
@@ -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,