Browse Source

Merge pull request #190 from sendssf/dev

Chore: Fix json cannot close bug
tags/0.1.0
TCL GitHub 2 years ago
parent
commit
240fb7a6fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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);
fs2.SetLength(0);
sw.Write(JsonConvert.SerializeObject(dict));

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


Loading…
Cancel
Save