Skip to content

Commit

Permalink
Change main loop to TaskCreationOptions.LongRunning task option
Browse files Browse the repository at this point in the history
  • Loading branch information
haga-rak authored Jan 11, 2025
1 parent e7a7375 commit 6c3d466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fluxzy.Core/Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public IReadOnlyCollection<IPEndPoint> Run()
_runTimeSetting.EndPoints = endPoints.ToHashSet();
_runTimeSetting.ProxyListenPort = endPoints.FirstOrDefault()?.Port ?? 0;

_loopTask = Task.Run(MainLoop);
_loopTask = Task.Factory.StartNew(MainLoop, TaskCreationOptions.LongRunning);

EndPoints = endPoints;
return endPoints;
Expand Down

0 comments on commit 6c3d466

Please sign in to comment.