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 {