From 164185621e12c8bf7be12172d7fb1abfb70ededc Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 21 Nov 2023 21:20:06 +0300 Subject: [PATCH] easy fix of the web error crash !!! (not rly) --- loader/src/loader/Index.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/loader/src/loader/Index.cpp b/loader/src/loader/Index.cpp index 5cc68c1bb..553e1a354 100644 --- a/loader/src/loader/Index.cpp +++ b/loader/src/loader/Index.cpp @@ -781,7 +781,11 @@ void Index::Impl::installNext(size_t index, IndexInstallList const& list) { item->setIsInstalled(true); // Install next item in queue - this->installNext(index + 1, list); + // this is in next frame cause otherwise + // it seems to deadlock and havent figured out why + Loader::get()->queueInMainThread([&]{ + this->installNext(index + 1, list); + }); }) .expect([postError, list, item](std::string const& err) { postError(fmt::format(