mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Fixes service updates not restoring the comms key
This commit is contained in:
@@ -61,6 +61,9 @@
|
||||
<setting name="SettingsVersion" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="ReattachCommsKey" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</TGServerService.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace TGServerService
|
||||
|
||||
RestartInProgress = true;
|
||||
currentPort = Properties.Settings.Default.ReattachPort;
|
||||
serviceCommsKey = Properties.Settings.Default.ReattachCommsKey;
|
||||
currentStatus = TGDreamDaemonStatus.Online;
|
||||
DDWatchdog = new Thread(new ThreadStart(Watchdog));
|
||||
DDWatchdog.Start();
|
||||
@@ -270,6 +271,7 @@ namespace TGServerService
|
||||
{
|
||||
Properties.Settings.Default.ReattachPID = Proc.Id;
|
||||
Properties.Settings.Default.ReattachPort = currentPort;
|
||||
Properties.Settings.Default.ReattachCommsKey = serviceCommsKey;
|
||||
RestartInProgress = true;
|
||||
}
|
||||
Proc.Close();
|
||||
|
||||
+12
@@ -226,5 +226,17 @@ namespace TGServerService.Properties {
|
||||
this["SettingsVersion"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string ReattachCommsKey {
|
||||
get {
|
||||
return ((string)(this["ReattachCommsKey"]));
|
||||
}
|
||||
set {
|
||||
this["ReattachCommsKey"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,5 +53,8 @@
|
||||
<Setting Name="SettingsVersion" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="ReattachCommsKey" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
Reference in New Issue
Block a user