!598 【master】【OpenHarmony 5.0.0.60】【RK3568】【压力测试】【ToC】【高概率】【XTS】出现13次 进程com.ohos.photos下出现jscrash,栈名:off

Merge pull request !598 from liujuan/master
This commit is contained in:
openharmony_ci 2024-08-28 01:59:59 +00:00 committed by Gitee
commit 0c95a404e8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -243,8 +243,11 @@ export class ScreenManager {
}
destroyMainWindow(): void {
this.getHost()?.off('windowSizeChange', (data: window.Size) => {
});
try {
this.getHost()?.off('windowSizeChange');
} catch (error) {
Log.error(TAG, `destroy window error: ${error}, code: ${error?.code}`);
}
}
getAvoidArea(): void {