Merge pull request #159 from Cyberboss/K-Killem

Removes ITGService StopForUpdate()
This commit is contained in:
Jordan Brown
2017-09-09 05:35:21 -04:00
committed by GitHub
3 changed files with 2 additions and 20 deletions
+2 -10
View File
@@ -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;
-6
View File
@@ -41,12 +41,6 @@ namespace TGServerService
//public api
public void VerifyConnection() { }
//public api
public void StopForUpdate()
{
PrepareForUpdate();
}
//public api
public void PrepareForUpdate()
{
-4
View File
@@ -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>