Преглед изворни кода

catch ApplicationException in directory watchers

Luke Pulverenti пре 12 година
родитељ
комит
4fd4b23a47
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

+ 5 - 0
MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

@@ -307,6 +307,11 @@ namespace MediaBrowser.Server.Implementations.IO
                     Logger.Warn("Network still unavailable...");
                     retries++;
                 }
+                catch (ApplicationException)
+                {
+                    Logger.Warn("Network still unavailable...");
+                    retries++;
+                }
             }
             if (!success)
             {