savestate backup had delete (it's asynchronous) vs move race condition
This commit is contained in:
parent
252dbe62ce
commit
10b8a54e6c
|
@ -3804,6 +3804,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
backupFile.Delete();
|
||||
}
|
||||
|
||||
//deletes are asynchronous, need to wait for it to be gone
|
||||
//TODO - make a common utility method to replace a backup including this whole process
|
||||
while (backupFile.Exists)
|
||||
Thread.Sleep(10);
|
||||
|
||||
File.Move(path, backup);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue