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; return null;
} }
// open file as MemoryStream // open file as MemoryStream.
// attempts multiple times, not sure why.. // ILPostProcessor is multithreaded.
// retry a few times in case another thread is still accessing the file.
static MemoryStream MemoryStreamFor(string fileName) static MemoryStream MemoryStreamFor(string fileName)
{ {
return Retry(10, TimeSpan.FromSeconds(1), () => return Retry(10, TimeSpan.FromSeconds(1), () =>