From 962dca6ab23138b6cd4828f90a7080ed8713326d Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 13 Dec 2022 20:44:56 +0300 Subject: [PATCH] fix cvs --- loader/src/loader/LoaderImpl.cpp | 2 ++ loader/src/utils/web.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/loader/src/loader/LoaderImpl.cpp b/loader/src/loader/LoaderImpl.cpp index 1156c594..d92e9523 100644 --- a/loader/src/loader/LoaderImpl.cpp +++ b/loader/src/loader/LoaderImpl.cpp @@ -358,6 +358,7 @@ void Loader::Impl::refreshModsList() { // UI can be loaded now m_earlyLoadFinished = true; + m_earlyLoadFinishedCV.notify_all(); // load the rest of the mods for (auto& mod : m_modsToLoad) { @@ -379,6 +380,7 @@ void Loader::Impl::updateAllDependencies() { void Loader::Impl::waitForModsToBeLoaded() { auto lock = std::unique_lock(m_earlyLoadFinishedMutex); + log::debug("Waiting for mods to be loaded... {}", bool(m_earlyLoadFinished)); m_earlyLoadFinishedCV.wait(lock, [this] { return bool(m_earlyLoadFinished); }); diff --git a/loader/src/utils/web.cpp b/loader/src/utils/web.cpp index 3a183658..0cb110fa 100644 --- a/loader/src/utils/web.cpp +++ b/loader/src/utils/web.cpp @@ -329,10 +329,12 @@ void SentAsyncWebRequest::Impl::cancel() { void SentAsyncWebRequest::Impl::pause() { m_paused = true; + m_statusCV.notify_all(); } void SentAsyncWebRequest::Impl::resume() { m_paused = false; + m_statusCV.notify_all(); } bool SentAsyncWebRequest::Impl::finished() const {