mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
wrap File.Delete on catch
This commit is contained in:
parent
fc4cee1a3a
commit
a807a874f0
1 changed files with 5 additions and 1 deletions
|
|
@ -73,7 +73,11 @@ public partial class ApiController
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
File.Delete(fileName);
|
try
|
||||||
|
{
|
||||||
|
File.Delete(fileName);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue