瀏覽代碼

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)
             {