Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/client/include/ClientContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,7 @@ class ClientContext {
return false;
}
auto &c = getClientCtx(cmd.topic);
#ifdef EMSCRIPTEN
// this is necessary for fetches to actually be called, as the new thread will start/init/end and then go into js runtime to fetch
std::thread ql{ [&c, cmd]() {
#endif
c.request(cmd);
#ifdef EMSCRIPTEN
} };
ql.join();
#endif
c.request(std::move(cmd));
return false;
});
}
Expand Down
Loading
Loading