From 64f4bbad02e7e1aeffe9ff5c0fb02261d9f28233 Mon Sep 17 00:00:00 2001 From: Space Time Date: Fri, 20 Dec 2024 19:26:56 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC91=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wins/MainWin.xaml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 2ad05ad..e0c111d 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -41,6 +41,7 @@ public partial class MainWin : Window private readonly FileSystemWatcher CealHostWatcher = new(Path.GetDirectoryName(MainConst.CealHostPath)!, Path.GetFileName(MainConst.CealHostPath)) { EnableRaisingEvents = true, NotifyFilter = NotifyFilters.LastWrite }; private readonly FileSystemWatcher NginxConfWatcher = new(Path.GetDirectoryName(MainConst.NginxConfPath)!, Path.GetFileName(MainConst.NginxConfPath)) { EnableRaisingEvents = true, NotifyFilter = NotifyFilters.LastWrite }; private readonly FileSystemWatcher MihomoConfWatcher = new(Path.GetDirectoryName(MainConst.MihomoConfPath)!, Path.GetFileName(MainConst.MihomoConfPath)) { EnableRaisingEvents = true, NotifyFilter = NotifyFilters.LastWrite }; + private readonly SemaphoreSlim IsNginxLaunchingSemaphore = new(1); private readonly SortedDictionary cealHostDomainPairs, string? cealHostSni, string cealHostIp)>?> CealHostRulesDict = []; private string CealArgs = string.Empty; @@ -56,8 +57,6 @@ public partial class MainWin : Window private int GameClickTime = 0; private int GameFlashInterval = 1000; - private static readonly SemaphoreSlim IsNginxLaunchingSemaphore = new(1); - internal MainWin() { InitializeComponent();