fix: dont abort when deleting one temp file fails

This commit is contained in:
Jonathan Jenne 2021-07-08 12:21:36 +02:00
parent f792a17395
commit d8dc517d11

View File

@ -254,14 +254,15 @@ Public Class frmStart
Catch ex As Exception
MsgBox("Unexpected Error in Closing Application: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try
'TempDateien löschen
Try
For Each _file In TEMP_FILES
System.IO.File.Delete(_file)
Next
Catch ex As Exception
LOGGER.Error(ex)
End Try
For Each oFile In TEMP_FILES
Try
System.IO.File.Delete(oFile)
Catch ex As Exception
LOGGER.Error(ex)
End Try
Next
Try
IndexForm.DisposeViewer()