Browse Source

Catch Exception when disposing connection

ipitio 2 years ago
parent
commit
58ed50c9d0
1 changed files with 5 additions and 0 deletions
  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)
             {