Skip to content

Commit

Permalink
哈希错误时,暂时不要删除文件,否则本地修改net.sh等文件时会出问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed May 30, 2024
1 parent 347a28d commit 70e9e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EasyWeb/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public async Task<ActionResult> DownloadFile(String pathInfo)
if (!_entryService.CheckHash(fe, fi))
{
_tracer?.NewError("DeleteFile-HashError", $"{fe.Path} {fi.FullName} {fe.Hash}");
fi.Delete();
//fi.Delete();

_cacheProvider.InnerCache.Remove($"hash:{fe.Id}");
}
Expand Down

0 comments on commit 70e9e48

Please sign in to comment.