From fd1d396406c5bdfbcfb558e89a465227f2d8d9ec Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 11 Jan 2021 01:12:06 +0100 Subject: [PATCH] Use wxCondition::Signal() rather than Broadcast() The latter is unnecessary when there is only one thread to wake up. --- src/common/webrequest_curl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/webrequest_curl.cpp b/src/common/webrequest_curl.cpp index b00ae82497..0b67cab259 100644 --- a/src/common/webrequest_curl.cpp +++ b/src/common/webrequest_curl.cpp @@ -361,7 +361,7 @@ wxWebSessionCURL::~wxWebSessionCURL() // Notify the work thread m_shuttingDown = true; wxMutexLocker lock(m_mutex); - m_condition.Broadcast(); + m_condition.Signal(); } // Wait for work thread to finish @@ -519,7 +519,7 @@ bool wxWebSessionCURL::StartRequest(wxWebRequestCURL & request) // Signal the worker thread to resume work wxMutexLocker lock(m_mutex); - m_condition.Broadcast(); + m_condition.Signal(); return true; }