mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Runs a chat connectivity check when the world reboots
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -75,6 +75,7 @@ namespace TGServerService
|
||||
case SRWorldReboot:
|
||||
TGServerService.WriteInfo("World Rebooted", TGServerService.EventID.WorldReboot);
|
||||
ServerChatCommands = null;
|
||||
ChatConnectivityCheck();
|
||||
lock (CompilerLock)
|
||||
{
|
||||
if (UpdateStaged)
|
||||
|
||||
Reference in New Issue
Block a user