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 6a0dc64 commit 22b8ebbCopy full SHA for 22b8ebb
src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs
@@ -113,9 +113,10 @@ private static async Task WaitForAngularCliServerToAcceptRequests(Uri cliServerU
113
try
114
{
115
// If we get any HTTP response, the CLI server is ready
116
+ using var cancellationTokenSource = new CancellationTokenSource(timeoutMilliseconds);
117
await client.SendAsync(
118
new HttpRequestMessage(HttpMethod.Head, cliServerUri),
- new CancellationTokenSource(timeoutMilliseconds).Token);
119
+ cancellationTokenSource.Token);
120
return;
121
}
122
catch (Exception)
0 commit comments