Horizon – Diff between revs 25 and 26

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 25 Rev 26
Line 1118... Line 1118...
1118 File.Create(path).Close(); 1118 File.Create(path).Close();
1119 } 1119 }
Line 1120... Line 1120...
1120   1120  
1121 File.Replace(temp, path, null, true); 1121 File.Replace(temp, path, null, true);
1122 } 1122 }
1123 catch(Exception e1) 1123 catch(Exception replaceException)
1124 { 1124 {
1125 var a = e1; 1125 Log.Warning(replaceException, "Failed to copy temporary file.");
1126 try 1126 try
1127 { 1127 {
1128 File.Delete(temp); 1128 File.Delete(temp);
1129 } 1129 }
Line 1151... Line 1151...
1151   1151  
1152 using (var zipStream = 1152 using (var zipStream =
1153 new GZipStream(readStream, CompressionMode.Decompress)) 1153 new GZipStream(readStream, CompressionMode.Decompress))
1154 { 1154 {
-   1155 await zipStream.CopyToAsync(fileStream);
1155 await zipStream.CopyToAsync(fileStream); 1156 zipStream.Close();
-   1157 }
-   1158  
1156 } 1159 fileStream.Close();
-   1160 }
-   1161  
1157 } 1162 readStream.Close();
Line 1158... Line 1163...
1158 } 1163 }
1159   1164