Call initRuntimeIfNeeded before EnterFrame in interop adapters. (#4672)

This commit is contained in:
Alexander Shabalin
2021-02-02 18:48:54 +03:00
committed by Vasily Levchenko
parent 99dc9e8e0c
commit f312315346
5 changed files with 13 additions and 6 deletions
@@ -189,7 +189,7 @@ void AppendToInitializersTail(InitNode *next) {
initTailNode = next;
}
void Kotlin_initRuntimeIfNeeded() {
RUNTIME_NOTHROW void Kotlin_initRuntimeIfNeeded() {
if (!isValidRuntime()) {
initRuntime();
// Register runtime deinit function at thread cleanup.