Skip to content

Commit e156a44

Browse files
committed
Update RNMultithreadingInstaller.cpp
1 parent 3eb9cdd commit e156a44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/RNMultithreadingInstaller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ void install(jsi::Runtime& runtime) {
5555
pool.enqueue([&resolver, &rejecter, run]() {
5656
try {
5757
auto& runtime = *manager->runtime;
58-
auto func = run->getValue(runtime).asObject(runtime).asFunction(runtime);
58+
auto funcValue = run->getValue(runtime);
59+
auto func = funcValue.asObject(runtime).asFunction(runtime);
5960
auto result = func.callWithThis(runtime, func);
6061

6162
// TODO: I probably have to call this on the other thread again.

0 commit comments

Comments
 (0)