mirror of
https://github.com/ckaczor/ProcessCpuUsageStatusWindow.git
synced 2026-01-14 01:25:41 -05:00
Fix SSL/TLS error
This commit is contained in:
@@ -4,6 +4,7 @@ using Squirrel;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
@@ -33,6 +34,8 @@ namespace ProcessCpuUsageStatusWindow
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||||
|
|
||||||
using (var updateManager = await UpdateManager.GitHubUpdateManager(App.UpdateUrl))
|
using (var updateManager = await UpdateManager.GitHubUpdateManager(App.UpdateUrl))
|
||||||
{
|
{
|
||||||
var updates = await updateManager.CheckForUpdate();
|
var updates = await updateManager.CheckForUpdate();
|
||||||
@@ -58,9 +61,9 @@ namespace ProcessCpuUsageStatusWindow
|
|||||||
UpdateManager.RestartApp();
|
UpdateManager.RestartApp();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
Console.WriteLine(e.Message);
|
Console.WriteLine(exception);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user