Skip to content

Commit

Permalink
easy fix of the web error crash !!! (not rly)
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Nov 21, 2023
1 parent df3979f commit 1641856
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion loader/src/loader/Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1641856

Please sign in to comment.