!5921 js_scene_session lock fixBug

Merge pull request !5921 from 罗冲/master
This commit is contained in:
openharmony_ci 2024-04-24 08:51:59 +00:00 committed by Gitee
commit 4af093b2a7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -327,7 +327,7 @@ void JsSceneSession::SetLandscapeMultiWindow(bool isLandscapeMultiWindow)
if (iter == jsCbMap_.end()) {
return;
}
auto jsCallBack = iter->second;
jsCallBack = iter->second;
}
auto task = [isLandscapeMultiWindow, jsCallBack, env = env_]() {
if (!jsCallBack) {