From 23bfc22d1159286546f52cece509954fc0e80abb Mon Sep 17 00:00:00 2001 From: camila314 <47485054+camila314@users.noreply.github.com> Date: Sun, 22 Oct 2023 11:50:58 -0500 Subject: [PATCH] someone made an oopsie in SentAsyncWebRequest::Impl's constructor --- loader/src/utils/web.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/src/utils/web.cpp b/loader/src/utils/web.cpp index 7675f46c..6bfea64d 100644 --- a/loader/src/utils/web.cpp +++ b/loader/src/utils/web.cpp @@ -187,7 +187,7 @@ static std::unordered_map RUNNING_REQUES static std::mutex RUNNING_REQUESTS_MUTEX; SentAsyncWebRequest::Impl::Impl(SentAsyncWebRequest* self, AsyncWebRequest const& req, std::string const& id) : - m_id(id), m_url(req.m_url), m_target(req.m_target), m_extra(req.extra()), m_httpHeaders(req.m_httpHeaders) { + m_self(self), m_id(id), m_url(req.m_url), m_target(req.m_target), m_extra(req.extra()), m_httpHeaders(req.m_httpHeaders) { #define AWAIT_RESUME() \ {\ @@ -296,6 +296,7 @@ SentAsyncWebRequest::Impl::Impl(SentAsyncWebRequest* self, AsyncWebRequest const } return 1; } + Loader::get()->queueInMainThread([self = data->self, now, total]() { std::lock_guard _(self->m_mutex); for (auto& prog : self->m_progresses) {