From 791ac6d87201b1f5eb4562fdb01bfa8b9f4d1ef9 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 17 May 2017 06:53:21 +0100 Subject: [PATCH] Do not crash if temporary files cannot be removed. Race conditions between the extract thread and the remove thread can happen. --- osrepodbmgr.Core/Workers.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osrepodbmgr.Core/Workers.cs b/osrepodbmgr.Core/Workers.cs index c9a7a35..0bed110 100644 --- a/osrepodbmgr.Core/Workers.cs +++ b/osrepodbmgr.Core/Workers.cs @@ -1315,6 +1315,12 @@ namespace osrepodbmgr.Core Finished(); } } + catch(System.IO.IOException) + { + // Could not delete temporary files, do not crash. + if(Finished != null) + Finished(); + } catch(Exception ex) { if(Debugger.IsAttached)