mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comments
This commit is contained in:
parent
4d127ad370
commit
73c9990f03
@ -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), () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user