From 3f3a34f7884ee05f81ddaebeae72f89eac93ae65 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Thu, 16 Jun 2016 02:25:42 +0100 Subject: [PATCH] Fix #762 --- Wox.Infrastructure/Storage/BinaryStorage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Wox.Infrastructure/Storage/BinaryStorage.cs b/Wox.Infrastructure/Storage/BinaryStorage.cs index bc6d5919f7..2de0006114 100644 --- a/Wox.Infrastructure/Storage/BinaryStorage.cs +++ b/Wox.Infrastructure/Storage/BinaryStorage.cs @@ -37,6 +37,7 @@ namespace Wox.Infrastructure.Storage } else { + stream.Close(); LoadDefault(); } } @@ -64,11 +65,13 @@ namespace Wox.Infrastructure.Storage catch (SerializationException e) { Log.Exception(e); + stream.Close(); LoadDefault(); } catch (InvalidCastException e) { Log.Exception(e); + stream.Close(); LoadDefault(); } finally