Reprocess files that get an IOException
This commit is contained in:
parent
f14a95e957
commit
26b8b2c949
@ -163,8 +163,27 @@ public static class scr
|
||||
log.debug( $"{e.Name} got {e.ChangeType}" );
|
||||
|
||||
if( e.Name.EndsWith(".cs") )
|
||||
{
|
||||
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