1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Added exception

This commit is contained in:
Andrey Zavadskiy 2017-02-17 21:07:59 +03:00
parent 6a58d7ab2a
commit 2f4855b00f

View File

@ -15,6 +15,7 @@ using osu.Framework.Graphics.Textures;
using osu.Game.Graphics; using osu.Game.Graphics;
using OpenTK; using OpenTK;
using OpenTK.Graphics; using OpenTK.Graphics;
using System;
namespace osu.Desktop.Overlays namespace osu.Desktop.Overlays
{ {
@ -111,6 +112,8 @@ namespace osu.Desktop.Overlays
} }
private async void updateChecker() private async void updateChecker()
{
try
{ {
updateManager = await UpdateManager.GitHubUpdateManager(@"https://github.com/ppy/osu", @"osulazer", null, null, true); updateManager = await UpdateManager.GitHubUpdateManager(@"https://github.com/ppy/osu", @"osulazer", null, null, true);
@ -138,6 +141,12 @@ namespace osu.Desktop.Overlays
Scheduler.AddDelayed(updateChecker, 60000 * 30); Scheduler.AddDelayed(updateChecker, 60000 * 30);
} }
} }
catch(Exception e)
{
//check again every 30 minutes.
Scheduler.AddDelayed(updateChecker, 60000 * 30);
}
}
protected override void PopIn() protected override void PopIn()
{ {