We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a4d163 commit 35a31dfCopy full SHA for 35a31df
src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs
@@ -113,11 +113,11 @@ private static async Task WaitForAngularCliServerToAcceptRequests(Uri cliServerU
113
{
114
try
115
116
+ using var cts = new CancellationTokenSource(timeoutMilliseconds);
117
// If we get any HTTP response, the CLI server is ready
118
await client.SendAsync(
119
new HttpRequestMessage(HttpMethod.Head, cliServerUri),
- new CancellationTokenSource(timeoutMilliseconds).Token);
120
- return;
+ cts.Token);
121
}
122
catch (Exception)
123
0 commit comments