Fix SSL/TLS error

This commit is contained in:
2018-02-22 16:05:44 -05:00
parent 9342c28ce8
commit 33e56dc548

View File

@@ -4,6 +4,7 @@ using Squirrel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Text;
using System.Threading;
@@ -33,6 +34,8 @@ namespace ProcessCpuUsageStatusWindow
{
try
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
using (var updateManager = await UpdateManager.GitHubUpdateManager(App.UpdateUrl))
{
var updates = await updateManager.CheckForUpdate();
@@ -58,9 +61,9 @@ namespace ProcessCpuUsageStatusWindow
UpdateManager.RestartApp();
#endif
}
catch (Exception e)
catch (Exception exception)
{
Console.WriteLine(e.Message);
Console.WriteLine(exception);
}
finally
{