mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Watch library directories with perm errors (#10684)
This commit is contained in:
parent
9c4bf48b4e
commit
03aa37731b
@ -314,6 +314,12 @@ namespace Emby.Server.Implementations.IO
|
||||
var ex = e.GetException();
|
||||
var dw = (FileSystemWatcher)sender;
|
||||
|
||||
if (ex is UnauthorizedAccessException unauthorizedAccessException)
|
||||
{
|
||||
_logger.LogError(unauthorizedAccessException, "Permission error for Directory watcher: {Path}", dw.Path);
|
||||
return;
|
||||
}
|
||||
|
||||
_logger.LogError(ex, "Error in Directory watcher for: {Path}", dw.Path);
|
||||
|
||||
DisposeWatcher(dw, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user