Skip to content

Commit

Permalink
Improved fix for M226/M600
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Aug 1, 2024
1 parent 431eafb commit d08388b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/DuetControlServer/Files/JobProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,11 @@ private static async Task DoFilePrint(CodeFile file)
{
try
{
// Keep the next file position up-to-date in case we need to pause or fork this macro file
if (!code.CancellationToken.IsCancellationRequested)
{
currentFilePosition = code.FilePosition ?? 0L;
}

// Logging of regular messages is done by the code itself, no need to take care of it here
await code.Task;

// Keep track of the file position
currentFilePosition = (code.FilePosition ?? 0L) + (code.Length ?? 0L);
}
catch (OperationCanceledException)
{
Expand Down

0 comments on commit d08388b

Please sign in to comment.