From b544d5cccd76735e034c8055918a50927b437474 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期二, 10 十一月 2026 08:29:04 +0800
Subject: [PATCH] fix: 维护模式重复进入失败与按钮灰死 + Broker 并发验证用例
---
Plugin.DeviceDebug/Model/DebugSessionManager.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Plugin.DeviceDebug/Model/DebugSessionManager.cs b/Plugin.DeviceDebug/Model/DebugSessionManager.cs
index 16cd94d..7357907 100644
--- a/Plugin.DeviceDebug/Model/DebugSessionManager.cs
+++ b/Plugin.DeviceDebug/Model/DebugSessionManager.cs
@@ -289,8 +289,10 @@
_resourceManager.ReleaseReservationAsync(
ownerToken, resourceKey, CancellationToken.None).GetAwaiter().GetResult();
- _sessionOwnerTokens.Remove(sessionId);
- log.Info($"宸查噴鏀捐澶� {session.DeviceId} 鐨勮祫婧愰绾�");
+ // 娉ㄦ剰锛氫笉鍒犻櫎 _sessionOwnerTokens[sessionId]锛�
+ // 浠ょ墝蹇呴』淇濇寔绋冲畾锛圱okenId 涓嶅彉锛夛紝鍚﹀垯涓嬫杩涘叆缁存姢鏃� new 鍑虹殑鏂� Token
+ // 鏃犳硶鍦� LayeredResourceManager._grantsByToken 涓壘鍒版棫绉熺害 鈫� 閲婃斁钀界┖ 鈫� 绉熺害姘镐箙娉勬紡
+ log.Info($"宸查噴鏀捐澶� {session.DeviceId} 鐨勮祫婧愰绾︼紙浠ょ墝淇濈暀渚涘鐢級");
}
catch (Exception ex)
{
--
Gitblit v1.9.1