aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/LibraryMonitor.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-09-04 19:28:59 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-09-04 19:28:59 +0200
commit46dd7d8e99ff7167d2d175878896294ed823927f (patch)
treeb7073a3dbbe5c4a367b44d58537086b38c1e9127 /Emby.Server.Implementations/IO/LibraryMonitor.cs
parent0d9c9c9eccf2f547f824ad47f2038c378930fdd2 (diff)
Invalidate the singleton DirectoryService cache on filesystem changes
Diffstat (limited to 'Emby.Server.Implementations/IO/LibraryMonitor.cs')
-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 e6a33d9dd3..d5735aed27 100644
--- a/Emby.Server.Implementations/IO/LibraryMonitor.cs
+++ b/Emby.Server.Implementations/IO/LibraryMonitor.cs
@@ -368,8 +368,8 @@ namespace Emby.Server.Implementations.IO
return;
}
- // Invalidate before the checks below: a change we deliberately do not refresh for still
- // has to be read correctly the next time somebody looks at that folder.
+ // The injected service is a singleton, so drop the path before the checks below:
+ // a change we deliberately do not refresh for still has to read correctly later.
_directoryService.Invalidate(path);
// Ignore certain files, If the parent of an ignored path has a change event, ignore that too