Runs a chat connectivity check when the world reboots

This commit is contained in:
Cyberboss
2017-09-08 10:20:43 -04:00
parent bb1f31822a
commit ba510dac44
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -239,6 +239,16 @@ namespace TGServerService
return false;
}
/// <summary>
/// Reconnect servers that are enabled and disconnected
/// </summary>
void ChatConnectivityCheck()
{
foreach (TGChatProvider I in Enum.GetValues(typeof(TGChatProvider)))
if(!Connected(I))
Reconnect(I);
}
//public api
public string Reconnect(TGChatProvider providerType)
{
+1
View File
@@ -75,6 +75,7 @@ namespace TGServerService
case SRWorldReboot:
TGServerService.WriteInfo("World Rebooted", TGServerService.EventID.WorldReboot);
ServerChatCommands = null;
ChatConnectivityCheck();
lock (CompilerLock)
{
if (UpdateStaged)