Browse Source

Chore: Fix json cannot close bug

tags/0.1.0
sendssf 2 years ago
parent
commit
87ccb221ee
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      installer/Installer/Model.cs

+ 2
- 1
installer/Installer/Model.cs View File

@@ -821,7 +821,8 @@ namespace Downloader
using StreamWriter sw = new StreamWriter(fs2); using StreamWriter sw = new StreamWriter(fs2);
fs2.SetLength(0); fs2.SetLength(0);
sw.Write(JsonConvert.SerializeObject(dict)); sw.Write(JsonConvert.SerializeObject(dict));

sw.Close();
fs2.Close();
try try
{ {
File.Delete(Data.path); File.Delete(Data.path);


Loading…
Cancel
Save