diff options
Diffstat (limited to 'ssl/quic/quic_thread_assist.c')
-rw-r--r-- | ssl/quic/quic_thread_assist.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ssl/quic/quic_thread_assist.c b/ssl/quic/quic_thread_assist.c index 3e2ff1bc6f..93d246ea8e 100644 --- a/ssl/quic/quic_thread_assist.c +++ b/ssl/quic/quic_thread_assist.c @@ -85,7 +85,7 @@ int ossl_quic_thread_assist_stop_async(QUIC_THREAD_ASSIST *qta) { if (!qta->teardown) { qta->teardown = 1; - ossl_crypto_condvar_broadcast(qta->cv); + ossl_crypto_condvar_signal(qta->cv); } return 1; @@ -133,11 +133,7 @@ int ossl_quic_thread_assist_notify_deadline_changed(QUIC_THREAD_ASSIST *qta) if (qta->teardown) return 0; - /* - * Wake-one would be better here but as there is only one listening thread - * this does not actually matter. - */ - ossl_crypto_condvar_broadcast(qta->cv); + ossl_crypto_condvar_signal(qta->cv); return 1; } |