aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ServerManager/ServerManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-16 02:13:32 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-16 02:13:32 -0500
commitaa290062d63021c5a2251f5a71086313af0bacbd (patch)
tree139043a3b11e6cccfb4509c6e749a9d35c810cd1 /Emby.Server.Implementations/ServerManager/ServerManager.cs
parentdb7e78640ae94622cd8feb9f84b35e9f85f18c82 (diff)
fix server restart
Diffstat (limited to 'Emby.Server.Implementations/ServerManager/ServerManager.cs')
-rw-r--r--Emby.Server.Implementations/ServerManager/ServerManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ServerManager/ServerManager.cs b/Emby.Server.Implementations/ServerManager/ServerManager.cs
index f7e4c0ce2..4c9228e54 100644
--- a/Emby.Server.Implementations/ServerManager/ServerManager.cs
+++ b/Emby.Server.Implementations/ServerManager/ServerManager.cs
@@ -303,6 +303,7 @@ namespace Emby.Server.Implementations.ServerManager
/// </summary>
private void DisposeHttpServer()
{
+ _logger.Info("Disposing web socket connections");
foreach (var socket in _webSocketConnections)
{
// Dispose the connection
@@ -314,6 +315,9 @@ namespace Emby.Server.Implementations.ServerManager
if (HttpServer != null)
{
HttpServer.WebSocketConnected -= HttpServer_WebSocketConnected;
+
+ _logger.Info("Disposing http server");
+
HttpServer.Dispose();
}
}