Skip to content

Commit

Permalink
Finished last bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Oct 18, 2024
1 parent 0c1de66 commit a8b990e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 2 additions & 6 deletions src/DuetControlServer/Codes/Pipelines/PipelineBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ public virtual Task<bool> FlushAsync(CodeFile file)
return stackItem.FlushAsync();
}
}

Processor.Logger.Warn("Failed to find corresponding state for file flush request, falling back to current state");
return CurrentStackItem.FlushAsync();
return Task.FromResult(false);
}
}

Expand All @@ -178,9 +176,7 @@ public virtual Task<bool> FlushAsync(Commands.Code code, bool evaluateExpression
return stackItem.FlushAsync(code);
}
}

Processor.Logger.Warn("Failed to find corresponding state for code flush request, falling back to current state");
return CurrentStackItem.FlushAsync(code);
return Task.FromResult(false);
}
}

Expand Down
5 changes: 1 addition & 4 deletions src/DuetControlServer/SPI/Channel/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,7 @@ public void FilesAborted(bool abortAll)
// Invalidate remaining buffered codes from the last macro file
foreach (Code bufferedCode in BufferedCodes)
{
if (bufferedCode != startCode)
{
Codes.Processor.CancelCode(bufferedCode);
}
Codes.Processor.CancelCode(bufferedCode);
}
BufferedCodes.Clear();
BytesBuffered = 0;
Expand Down

0 comments on commit a8b990e

Please sign in to comment.