Browse Source

handle files already being deleted

Luke Pulverenti 7 years ago
parent
commit
99f4dd95e9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 8 - 0
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -433,6 +433,14 @@ namespace Emby.Server.Implementations.Library
                             _fileSystem.DeleteFile(fileSystemInfo.FullName);
                         }
                     }
+                    catch (FileNotFoundException)
+                    {
+                        // may have already been deleted manually by user
+                    }
+                    catch (DirectoryNotFoundException)
+                    {
+                        // may have already been deleted manually by user
+                    }
                     catch (IOException)
                     {
                         if (isRequiredForDelete)