mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Added exception
This commit is contained in:
parent
6a58d7ab2a
commit
2f4855b00f
@ -15,6 +15,7 @@ using osu.Framework.Graphics.Textures;
|
||||
using osu.Game.Graphics;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using System;
|
||||
|
||||
namespace osu.Desktop.Overlays
|
||||
{
|
||||
@ -111,6 +112,8 @@ namespace osu.Desktop.Overlays
|
||||
}
|
||||
|
||||
private async void updateChecker()
|
||||
{
|
||||
try
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
//check again every 30 minutes.
|
||||
Scheduler.AddDelayed(updateChecker, 60000 * 30);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user