mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Merge pull request #159 from Cyberboss/K-Killem
Removes ITGService StopForUpdate()
This commit is contained in:
@@ -117,16 +117,8 @@ namespace TGInstallerWrapper
|
||||
}
|
||||
catch
|
||||
{
|
||||
try //maybe older version
|
||||
{
|
||||
Server.GetComponent<ITGSService>().StopForUpdate(); //this version tries to stop the service itself
|
||||
await Task.Factory.StartNew(() => Thread.Sleep(15000)); //so let's just let that happen first
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (MessageBox.Show("ITGSService.PrepareForUpdate() threw an exception! Existing DreamDaemon instances will be terminated. Continue?", "Warning", MessageBoxButtons.YesNo) != DialogResult.Yes)
|
||||
return;
|
||||
}
|
||||
if (MessageBox.Show("ITGSService.PrepareForUpdate() threw an exception! Existing DreamDaemon instances will be terminated. Continue?", "Warning", MessageBoxButtons.YesNo) != DialogResult.Yes)
|
||||
return;
|
||||
}
|
||||
|
||||
InstallCancelButton.Enabled = true;
|
||||
|
||||
@@ -41,12 +41,6 @@ namespace TGServerService
|
||||
//public api
|
||||
public void VerifyConnection() { }
|
||||
|
||||
//public api
|
||||
public void StopForUpdate()
|
||||
{
|
||||
PrepareForUpdate();
|
||||
}
|
||||
|
||||
//public api
|
||||
public void PrepareForUpdate()
|
||||
{
|
||||
|
||||
@@ -68,10 +68,6 @@ namespace TGServiceInterface
|
||||
[OperationContract]
|
||||
void PrepareForUpdate();
|
||||
|
||||
[OperationContract]
|
||||
[Obsolete("StopForUpdate is deprecated, please use PrepareForUpdate instead")]
|
||||
void StopForUpdate();
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve's the service's version
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user