From d8dc517d11efdbd0506b0e32104e8793e0ed60c4 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Thu, 8 Jul 2021 12:21:36 +0200 Subject: [PATCH] fix: dont abort when deleting one temp file fails --- Global_Indexer/frmStart.vb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Global_Indexer/frmStart.vb b/Global_Indexer/frmStart.vb index 2b1cdb1..27e314b 100644 --- a/Global_Indexer/frmStart.vb +++ b/Global_Indexer/frmStart.vb @@ -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()