Reprocess files that get an IOException
This commit is contained in:
parent
f14a95e957
commit
26b8b2c949
@ -164,7 +164,26 @@ public static class scr
|
|||||||
|
|
||||||
if( e.Name.EndsWith(".cs") )
|
if( e.Name.EndsWith(".cs") )
|
||||||
{
|
{
|
||||||
Process( e.FullPath );
|
while( true )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Process( e.FullPath );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
catch( System.IO.IOException ex )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
catch( Exception ex )
|
||||||
|
{
|
||||||
|
log.error( $"Got ex {ex.GetType().Name} trying to process {e.FullPath}" );
|
||||||
|
log.error( $"-> {ex.Message}" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Thread.Sleep( 100 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user