Properly close the steam when writing

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-27 19:45:01 -07:00
parent 13b077e91c
commit 3bb06ec058

View File

@@ -58,6 +58,7 @@ namespace Orchard.Data {
using (var stream = _appDataFolder.CreateFile(pathName)) {
formatter.Serialize(stream, cache.Hash);
formatter.Serialize(stream, cache.Configuration);
stream.Close();
}
}
catch (Exception e) {