Skip to content

Commit

Permalink
don't cancel CancelKeyPressEvent itself'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 29, 2021
1 parent 7606766 commit c28355f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ShellProgressBar.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ static void Main(string[] args)
var cts = new CancellationTokenSource();
Console.CancelKeyPress += (s, e) =>
{
e.Cancel = true;
cts.Cancel();
};

Expand Down

0 comments on commit c28355f

Please sign in to comment.