Skip to content

Commit

Permalink
Fix the file deletion error by removing the deadlock (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari authored Sep 18, 2024
1 parent a473880 commit f8e3201
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/NexusMods.DataModel/NxFileStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public NxFileStore(
/// <inheritdoc />
public ValueTask<bool> HaveFile(Hash hash)
{
using var lck = _lock.ReadLock();
var db = _conn.Db;
var archivedFiles = ArchivedFile.FindByHash(db, hash).Any(x => x.IsValid());
return ValueTask.FromResult(archivedFiles);
Expand Down

0 comments on commit f8e3201

Please sign in to comment.