Skip to content

Commit

Permalink
moving DST Service off main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis1337 committed Apr 22, 2023
1 parent 8d90d96 commit 5cbc03c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ReserveBlockCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ static async Task Main(string[] args)
_ = AuctionEngine.StartAuctioneer();
}

if (Globals.SelfSTUNServer)
_ = Task.Run(() => { StartupService.StartDSTServer(); });//launching off the main thread.

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
_ = WindowsUtilities.AdjAutoRestart();
Expand Down Expand Up @@ -734,9 +736,6 @@ private static void CommandLoop2(string url)
private static void CommandLoop3()
{
_ = StartupService.StartBeacon();
if(Globals.SelfSTUNServer)
_ = StartupService.StartDSTServer();

}

#endregion
Expand Down

0 comments on commit 5cbc03c

Please sign in to comment.