Skip to content

Commit

Permalink
Merge branch 'davidfowl:main' into nickbreese/fix-relative-uri
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbreese authored Jul 16, 2022
2 parents 4e629d2 + 336929d commit f316838
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion samples/ServerApplication/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ public static async Task Main(string[] args)
}

var tcs = new TaskCompletionSource<object>();
Console.CancelKeyPress += (sender, e) => tcs.TrySetResult(null);
Console.CancelKeyPress += (sender, e) =>
{
tcs.TrySetResult(null);
e.Cancel = true;
};

await tcs.Task;

await server.StopAsync();
Expand Down

0 comments on commit f316838

Please sign in to comment.