diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-28 22:01:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-28 22:01:03 +0100 |
commit | 0e10a48a17fb62364d091d4c498a7ca14cb4eee6 (patch) | |
tree | dee32b88aa3f3e57916ea3e22464f3eb0975e945 /src | |
parent | 4dd87e111852f25dc5e55c33ee2fb2a3fa475a83 (diff) | |
download | exchange-0e10a48a17fb62364d091d4c498a7ca14cb4eee6.tar.xz |
swap signal and unlock logic to hopefully nail #6726
Diffstat (limited to 'src')
-rw-r--r-- | src/util/taler-exchange-secmod-eddsa.c | 2 | ||||
-rw-r--r-- | src/util/taler-exchange-secmod-rsa.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c index 1280459f1..665622552 100644 --- a/src/util/taler-exchange-secmod-eddsa.c +++ b/src/util/taler-exchange-secmod-eddsa.c @@ -637,8 +637,8 @@ handle_sign_request (const struct sockaddr_un *addr, GNUNET_CONTAINER_DLL_insert (work_head, work_tail, wi); - GNUNET_assert (0 == pthread_mutex_unlock (&work_lock)); GNUNET_assert (0 == pthread_cond_signal (&work_cond)); + GNUNET_assert (0 == pthread_mutex_unlock (&work_lock)); } diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index 27d3d7a96..742175c09 100644 --- a/src/util/taler-exchange-secmod-rsa.c +++ b/src/util/taler-exchange-secmod-rsa.c @@ -710,8 +710,8 @@ handle_sign_request (const struct sockaddr_un *addr, GNUNET_CONTAINER_DLL_insert (work_head, work_tail, wi); - GNUNET_assert (0 == pthread_mutex_unlock (&work_lock)); GNUNET_assert (0 == pthread_cond_signal (&work_cond)); + GNUNET_assert (0 == pthread_mutex_unlock (&work_lock)); } |