1 parent 6eef530 commit 5b14e71Copy full SHA for 5b14e71
1 file changed
Essentials/AutoCommand.cs
@@ -203,9 +203,10 @@ internal async void RunNow()
203
_cTokenSource = new CancellationTokenSource();
204
var token = _cTokenSource.Token;
205
_isRunning = true;
206
+ var steps = new List<CommandStep>(Steps);
207
await Task.Run(() =>
208
{
- foreach (var step in Steps)
209
+ foreach (var step in steps)
210
211
if (token.IsCancellationRequested)
212
0 commit comments