aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-09-18 20:50:05 +0200
committerBond_009 <bond.009@outlook.com>2023-09-18 20:50:05 +0200
commitb8f42573c42b63937433ef12e5948275192acde4 (patch)
tree6bb7be51e9bab881f0dcaa3c3ae1d0e69eb3f955 /Emby.Server.Implementations/IO
parent767a42fbdbbb2db30313d0935f322f162ebeced4 (diff)
Address review comments
Diffstat (limited to 'Emby.Server.Implementations/IO')
-rw-r--r--Emby.Server.Implementations/IO/LibraryMonitor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/IO/LibraryMonitor.cs b/Emby.Server.Implementations/IO/LibraryMonitor.cs
index 1b6e45487..dde38906f 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;