This commit is contained in:
mischa 2023-06-20 11:39:18 +08:00 committed by mischa
parent 4d127ad370
commit 73c9990f03

View File

@ -153,8 +153,9 @@ string FindFile(string name)
return null;
}
// open file as MemoryStream
// attempts multiple times, not sure why..
// open file as MemoryStream.
// ILPostProcessor is multithreaded.
// retry a few times in case another thread is still accessing the file.
static MemoryStream MemoryStreamFor(string fileName)
{
return Retry(10, TimeSpan.FromSeconds(1), () =>