mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
Fix loop mode of ark native engine
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
This commit is contained in:
parent
21d9600da4
commit
49c72991c2
@ -2640,7 +2640,7 @@ bool JsiEngine::Initialize(const RefPtr<FrontendDelegate>& delegate)
|
||||
nativeEngine_ = new ArkNativeEngine(const_cast<EcmaVM*>(vm), static_cast<void*>(this));
|
||||
ACE_DCHECK(delegate);
|
||||
delegate->AddTaskObserver([nativeEngine = nativeEngine_](){
|
||||
nativeEngine->Loop(LOOP_DEFAULT);
|
||||
nativeEngine->Loop(LOOP_NOWAIT);
|
||||
});
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user