Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Essentials/AutoCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,10 @@ internal async void RunNow()
_cTokenSource = new CancellationTokenSource();
var token = _cTokenSource.Token;
_isRunning = true;
var steps = new List<CommandStep>(Steps);
await Task.Run(() =>
{
foreach (var step in Steps)
foreach (var step in steps)
{
if (token.IsCancellationRequested)
{
Expand Down