add delay for copying a file
This commit is contained in:
@@ -42,6 +42,7 @@ public static class Utils
|
||||
oldFile = destFileName + ".old";
|
||||
File.Move(destFileName, oldFile, true);
|
||||
triesLeft++;
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -54,6 +55,7 @@ public static class Utils
|
||||
try
|
||||
{
|
||||
File.Delete(oldFile);
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user