fix(native): remap crash

This commit is contained in:
rhunk
2024-04-22 16:41:49 +02:00
parent dc9cf11364
commit cce64bb246

View File

@@ -31,6 +31,8 @@ bool JNICALL init(JNIEnv *env, jobject clazz) {
LOGD("client_module offset=0x%lx, size=0x%zx", client_module.base, client_module.size);
util::remap_sections(BUILD_PACKAGE);
auto threads = std::vector<std::thread>();
#define RUN(body) \
@@ -44,8 +46,6 @@ bool JNICALL init(JNIEnv *env, jobject clazz) {
if (common::native_config->composer_hooks) {
RUN(ComposerHook::init());
}
RUN(util::remap_sections(BUILD_PACKAGE));
for (auto &thread : threads) {
thread.join();
}