Updated the UpdateManager.
It now performs all its web requests asynchronously and does a better job of explaining errors it encounters without plastering red Exception messages on the console.
This commit is contained in:
parent
06f813c203
commit
51b796cf47
2 changed files with 69 additions and 32 deletions
|
|
@ -1874,7 +1874,7 @@ namespace TShockAPI
|
|||
args.Player.SendInfoMessage("An update check has been queued.");
|
||||
try
|
||||
{
|
||||
TShock.UpdateManager.UpdateCheck(null);
|
||||
TShock.UpdateManager.UpdateCheckAsync(null);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue