From e20853967f291960312f1c643b1abee7f97d5b3d Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 11 Jun 2015 12:31:24 +0400 Subject: [PATCH] (ArcFile.TryOpen): abort on OperationCanceledException. --- GameRes/ArcFile.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GameRes/ArcFile.cs b/GameRes/ArcFile.cs index 73064e6d..a5c5cd1b 100644 --- a/GameRes/ArcFile.cs +++ b/GameRes/ArcFile.cs @@ -88,6 +88,11 @@ namespace GameRes return arc; } } + catch (OperationCanceledException X) + { + FormatCatalog.Instance.LastError = X; + return null; + } catch (Exception X) { // ignore failed open attmepts