Skip to content

Commit

Permalink
Fix for critical error in AppUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
UAVXP committed Nov 11, 2019
1 parent 42c9fe5 commit 94d9336
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AppUpdater/MUVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ public static bool Init()
Task<IReadOnlyList<Release>> releases = client.Repository.Release.GetAll("UAVXP", "MedocUpdates");
if(releases == null)
{
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the GIthub. Probably Internet was down");
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the Github. Probably Internet was down");
return false;
}

if(releases.Result == null)
{
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Probably, something wrong with the Github. Try to check for updates again later");
return false;
}

Expand Down

0 comments on commit 94d9336

Please sign in to comment.