From 2b5cbb5e74d2fc629332fa8eb984a807e8042a1a Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:27:00 +0800 Subject: [PATCH] UnauthorizedAccessException to Exception --- v2rayN/ServiceLib/Common/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Common/Utils.cs b/v2rayN/ServiceLib/Common/Utils.cs index 30ef590c..c6937911 100644 --- a/v2rayN/ServiceLib/Common/Utils.cs +++ b/v2rayN/ServiceLib/Common/Utils.cs @@ -684,7 +684,7 @@ namespace ServiceLib.Common File.Create(fileName).Close(); File.Delete(fileName); } - catch (UnauthorizedAccessException) + catch (Exception) { return false; }