Skip to content

Commit

Permalink
Fixed finding
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Mar 18, 2024
1 parent be9c62b commit a28e726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Workers/WatchedLibrary.cs
Expand Up @@ -791,7 +791,7 @@ private async Task<bool> CanAccess(FileInfo file, int fileSizeDetectionInterval)

checkedAccess = true;

using (var fs = FileOpenHelper.OpenRead_NoLocks(file.FullName))
using (var fs = FileOpenHelper.OpenForCheckingReadWriteAccess(file.FullName))
{
if(fs.CanRead == false)
{
Expand Down

0 comments on commit a28e726

Please sign in to comment.