From bd066589b858009818d23699fd07ec8ee853b265 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 21 Feb 2015 18:46:12 -0700 Subject: [PATCH] UpdateManager no longer silently shuts down after failure --- TShockAPI/UpdateManager.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TShockAPI/UpdateManager.cs b/TShockAPI/UpdateManager.cs index bfb96740..5448fb35 100755 --- a/TShockAPI/UpdateManager.cs +++ b/TShockAPI/UpdateManager.cs @@ -32,7 +32,7 @@ namespace TShockAPI /// /// Check once every X minutes. /// - private readonly int CheckXMinutes = 30; + private int CheckXMinutes = 30; public UpdateManager() { @@ -44,11 +44,12 @@ namespace TShockAPI try { UpdateCheck(state); + CheckXMinutes = 30; } catch (Exception) { - //swallow the exception - return; + // Skip this run and check more frequently... + CheckXMinutes = 5; } Thread.Sleep(CheckXMinutes * 60 * 1000);