From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化

---
 Plugin.TsSupport/TestAppManager.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Plugin.TsSupport/TestAppManager.cs b/Plugin.TsSupport/TestAppManager.cs
index aff44ab..f136b8f 100644
--- a/Plugin.TsSupport/TestAppManager.cs
+++ b/Plugin.TsSupport/TestAppManager.cs
@@ -4,14 +4,18 @@
 {
     public class TestAppManager
     {
+        private static object lockObj = new object();
         private static AxApplicationMgr instance;
         public static AxApplicationMgr GetAxApplicationMgr()
         {
-            if (instance == null)
+            lock (lockObj)
             {
-                instance = new AxApplicationMgr();
+                if (instance == null)
+                {
+                    instance = new AxApplicationMgr();
+                }
+                return instance;
             }
-            return instance;
         }
     }
 }

--
Gitblit v1.9.1