From 84765ab96d47e57e7b77273517fe1f930fef5357 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Fri, 25 Dec 2020 17:12:03 +0800 Subject: [PATCH] Delay Add Job --- Netch/Controllers/MainController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Netch/Controllers/MainController.cs b/Netch/Controllers/MainController.cs index d0cbe4be..26f0a7cc 100644 --- a/Netch/Controllers/MainController.cs +++ b/Netch/Controllers/MainController.cs @@ -1,6 +1,7 @@ using System; using System.IO; using System.Net; +using System.Threading; using System.Threading.Tasks; using Netch.Models; using Netch.Servers.Socks5; @@ -149,7 +150,11 @@ namespace Netch.Controllers { if (guard.Instance != null) { - Global.Job.AddProcess(guard.Instance); + Task.Run(() => + { + Thread.Sleep(1000); + Global.Job.AddProcess(guard.Instance); + }); } }