소스 검색

Address review comments

Bond_009 1 년 전
부모
커밋
b8f42573c4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Emby.Server.Implementations/IO/LibraryMonitor.cs

+ 2 - 2
Emby.Server.Implementations/IO/LibraryMonitor.cs

@@ -380,7 +380,6 @@ namespace Emby.Server.Implementations.IO
                 }
             }
 
-            // Avoid implicitly captured closure
             CreateRefresher(path);
         }
 
@@ -414,7 +413,8 @@ namespace Emby.Server.Implementations.IO
                     }
 
                     // They are siblings. Rebase the refresher to the parent folder.
-                    if (parentPath is not null && string.Equals(parentPath, Path.GetDirectoryName(refresher.Path), StringComparison.Ordinal))
+                    if (parentPath is not null
+                        && Path.GetDirectoryName(refresher.Path.AsSpan()).Equals(parentPath, StringComparison.Ordinal))
                     {
                         refresher.ResetPath(parentPath, path);
                         return;