diff --git a/src/DuetControlServer/Codes/Handlers/MCodes.cs b/src/DuetControlServer/Codes/Handlers/MCodes.cs index 54488fd1..27c8b0b2 100644 --- a/src/DuetControlServer/Codes/Handlers/MCodes.cs +++ b/src/DuetControlServer/Codes/Handlers/MCodes.cs @@ -200,7 +200,7 @@ public static class MCodes using (await JobProcessor.LockAsync(code.CancellationToken)) { - if (!code.IsFromFileChannel && JobProcessor.IsProcessing) + if (!code.IsFromFileChannel && (JobProcessor.IsProcessing || JobProcessor.IsPaused)) { return new Message(MessageType.Error, "Cannot set file to print, because a file is already being printed"); } @@ -425,7 +425,7 @@ public static class MCodes using (await JobProcessor.LockAsync(code.CancellationToken)) { - if (!code.IsFromFileChannel && JobProcessor.IsProcessing) + if (!code.IsFromFileChannel && (JobProcessor.IsProcessing || JobProcessor.IsPaused)) { return new Message(MessageType.Error, "Cannot set file to simulate, because a file is already being printed"); }