Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c8508a

Browse files
committed
Merge remote-tracking branch 'chsbuffer/fixJob'
2 parents f931adb + 84765ab commit 4c8508a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Netch/Controllers/MainController.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.IO;
33
using System.Net;
4+
using System.Threading;
45
using System.Threading.Tasks;
56
using Netch.Models;
67
using Netch.Servers.Socks5;
@@ -149,7 +150,11 @@ private static bool StartServer(Server server, Mode mode, ref IServerController
149150
{
150151
if (guard.Instance != null)
151152
{
152-
Global.Job.AddProcess(guard.Instance);
153+
Task.Run(() =>
154+
{
155+
Thread.Sleep(1000);
156+
Global.Job.AddProcess(guard.Instance);
157+
});
153158
}
154159
}
155160

0 commit comments

Comments
 (0)