mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Properly close the steam when writing
--HG-- branch : dev
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user