mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-20 07:04:22 -04:00
Fix loop mode of ark native engine
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user