浏览代码

Catch Exception when disposing connection

ipitio 2 年之前
父节点
当前提交
58ed50c9d0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs

+ 5 - 0
MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs

@@ -232,6 +232,11 @@ namespace MediaBrowser.Controller.Net
                 // TODO Investigate and properly fix.
                 Logger.LogError(ex, "Object Disposed");
             }
+            catch (Exception ex)
+            {
+                // TODO Investigate and properly fix.
+                Logger.LogError(ex, "Object Disposed Exception");
+            }
 
             lock (_activeConnections)
             {