This commit is contained in:
bao-qian 2016-06-16 02:25:42 +01:00
parent e7879384b1
commit 3f3a34f788

View File

@ -37,6 +37,7 @@ namespace Wox.Infrastructure.Storage
} }
else else
{ {
stream.Close();
LoadDefault(); LoadDefault();
} }
} }
@ -64,11 +65,13 @@ namespace Wox.Infrastructure.Storage
catch (SerializationException e) catch (SerializationException e)
{ {
Log.Exception(e); Log.Exception(e);
stream.Close();
LoadDefault(); LoadDefault();
} }
catch (InvalidCastException e) catch (InvalidCastException e)
{ {
Log.Exception(e); Log.Exception(e);
stream.Close();
LoadDefault(); LoadDefault();
} }
finally finally