diff --git a/TGServerService/Chat.cs b/TGServerService/Chat.cs index cafc390697..d10633a943 100644 --- a/TGServerService/Chat.cs +++ b/TGServerService/Chat.cs @@ -239,6 +239,16 @@ namespace TGServerService return false; } + /// + /// Reconnect servers that are enabled and disconnected + /// + void ChatConnectivityCheck() + { + foreach (TGChatProvider I in Enum.GetValues(typeof(TGChatProvider))) + if(!Connected(I)) + Reconnect(I); + } + //public api public string Reconnect(TGChatProvider providerType) { diff --git a/TGServerService/Interop.cs b/TGServerService/Interop.cs index e30144b16b..47f168a324 100644 --- a/TGServerService/Interop.cs +++ b/TGServerService/Interop.cs @@ -75,6 +75,7 @@ namespace TGServerService case SRWorldReboot: TGServerService.WriteInfo("World Rebooted", TGServerService.EventID.WorldReboot); ServerChatCommands = null; + ChatConnectivityCheck(); lock (CompilerLock) { if (UpdateStaged)