diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-08-13 02:47:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-13 02:47:45 -0400 |
| commit | 5b92b44f1a56e6e33a7d8d780882efe88fb67153 (patch) | |
| tree | bd1835b753487592e2d09d0329152724f60310ea | |
| parent | c18b8ec608b44e04d17a1ef02a615b985ca00e7b (diff) | |
| parent | b309e06cb8741b7b697a57e230bd9f6ee452e8d9 (diff) | |
Merge pull request #2040 from softworkz/IsFileLockedFix
FileRefresher.IsFileLocked: Don't log Exceptions in case of no write permission
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/FileRefresher.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs index 742585143..2f4605c5c 100644 --- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs +++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs @@ -259,6 +259,11 @@ namespace MediaBrowser.Server.Implementations.IO // File may have been deleted return false; } + catch (UnauthorizedAccessException) + { + Logger.Debug("No write permission for: {0}.", path); + return false; + } catch (IOException) { //the file is unavailable because it is: |
