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.IntegrationTest/MainWindow.xaml.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Plugin.IntegrationTest/MainWindow.xaml.cs b/Plugin.IntegrationTest/MainWindow.xaml.cs
index 995ecc0..ea96761 100644
--- a/Plugin.IntegrationTest/MainWindow.xaml.cs
+++ b/Plugin.IntegrationTest/MainWindow.xaml.cs
@@ -721,6 +721,13 @@
         {
             try
             {
+                // 妫�鏌ユ槸鍚﹀凡鏈� DeviceBroker 杩涚▼鍦ㄨ繍琛岋紙閬垮厤澶氬疄渚嬩簤鎶㈢閬�/arb.db锛�
+                if (System.Diagnostics.Process.GetProcessesByName("DeviceBroker").Length > 0)
+                {
+                    Log("[INFO] DeviceBroker 瀹夸富宸插湪杩愯锛岃烦杩囧惎鍔�");
+                    return;
+                }
+
                 var model = new DeviceConfigModel();
                 string dbPath = Path.Combine(_testDir, "data.db");
                 if (!File.Exists(dbPath)) return;

--
Gitblit v1.9.1