fixed redirecting bug

the file has been deleted before the print was executed. implemented a delay of 1000 ms
This commit is contained in:
Marco Batzinger 2021-05-17 16:42:26 +02:00
parent ed90d68fab
commit ad542ad222
3 changed files with 2 additions and 5 deletions

View file

@ -163,6 +163,7 @@ namespace AmagnoVirtualPrinter.Agent.Lib.Misc
if (jobStatus == JobStatus.Completed || jobStatus == JobStatus.Failed)
{
LogDebug($"Deleting file on job status: {jobStatus}");
Thread.Sleep(1000);
DeleteFiles(ini, _outputDir, rawFile);
}
}