Skip to content

Commit 13cc06b

Browse files
committed
remove misleading comment
1 parent a2a79e0 commit 13cc06b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/UniGetUI.Interface.BackgroundApi/BackgroundApi.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public async Task Start()
5454
Settings.SetValue("CurrentSessionToken", ApiTokenHolder.Token);
5555
Logger.Info("Randomly-generated background API auth token: " + ApiTokenHolder.Token);
5656

57-
_running = true;
58-
5957
var builder = Host.CreateDefaultBuilder();
6058
builder.ConfigureServices(services => services.AddCors());
6159
builder.ConfigureWebHostDefaults(webBuilder =>
@@ -66,7 +64,6 @@ public async Task Start()
6664
#endif
6765
webBuilder.Configure(app =>
6866
{
69-
// Enable CORS
7067
app.UseCors(policy => policy
7168
.AllowAnyOrigin()
7269
.AllowAnyMethod()
@@ -95,6 +92,7 @@ public async Task Start()
9592
webBuilder.UseUrls("http://localhost:7058");
9693
});
9794
_host = builder.Build();
95+
_running = true;
9896
await _host.StartAsync();
9997
Logger.Info("Api running on http://localhost:7058");
10098
}

0 commit comments

Comments
 (0)