Reprocess files that get an IOException

This commit is contained in:
Marc Hernandez 2022-09-28 19:41:22 -07:00
parent f14a95e957
commit 26b8b2c949

View File

@ -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 );
}
} }
} }