mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 11:14:45 +00:00
Ignore exceptions when removing temporary files.
Need to investigate why anyway.
This commit is contained in:
@@ -446,7 +446,18 @@ public sealed partial class ImportRomFolderViewModel : ViewModelBase
|
||||
if(File.Exists(tmpFile)) File.Delete(tmpFile);
|
||||
}
|
||||
}
|
||||
catch(InvalidOperationException) {}
|
||||
try
|
||||
{
|
||||
if(File.Exists(tmpFile)) File.Delete(tmpFile);
|
||||
}
|
||||
catch(IOException)
|
||||
#pragma warning disable PH2098
|
||||
{
|
||||
// Ignore IO exceptions when deleting temporary files
|
||||
}
|
||||
#pragma warning restore PH2098
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Interlocked.Increment(ref _listPosition);
|
||||
|
||||
Reference in New Issue
Block a user