From b8f42573c42b63937433ef12e5948275192acde4 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Mon, 18 Sep 2023 20:50:05 +0200 Subject: [PATCH] Address review comments --- Emby.Server.Implementations/IO/LibraryMonitor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Emby.Server.Implementations/IO/LibraryMonitor.cs b/Emby.Server.Implementations/IO/LibraryMonitor.cs index 1b6e454878..dde38906f3 100644 --- a/Emby.Server.Implementations/IO/LibraryMonitor.cs +++ b/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;