From 6a319ffa607167fd89b304f530fd1c8486a9726a Mon Sep 17 00:00:00 2001 From: zhaoyixin1998 Date: Tue, 6 Jan 2026 15:22:41 +0800 Subject: [PATCH] =?UTF-8?q?operator=E5=AF=B9=E8=B1=A1=E9=87=8A=E6=94=BE?= =?UTF-8?q?=E5=89=8D=E5=8A=A0=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaoyixin1998 --- services/aams/src/accessibility_window_connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/aams/src/accessibility_window_connection.cpp b/services/aams/src/accessibility_window_connection.cpp index c73b7b0a7..7dcfbb003 100644 --- a/services/aams/src/accessibility_window_connection.cpp +++ b/services/aams/src/accessibility_window_connection.cpp @@ -131,6 +131,7 @@ void AccessibilityWindowConnection::AddDeathRecipient(int32_t windowId, int32_t void AccessibilityWindowConnection::ResetProxy() { + std::lock_guard lock(proxyMutex_); if (proxy_ && proxy_->AsObject() && proxyDeathRecipient_) { proxy_->AsObject()->RemoveDeathRecipient(proxyDeathRecipient_); } @@ -141,6 +142,7 @@ void AccessibilityWindowConnection::ResetProxy() void AccessibilityWindowConnection::ResetBrokerProxy() { + std::lock_guard lock(proxyMutex_); if (brokerProxy_ && brokerProxy_->AsObject() && brokerProxyDeathRecipient_) { brokerProxy_->AsObject()->RemoveDeathRecipient(brokerProxyDeathRecipient_); }