Pacify updater (#1899)

* Updater: Remove dirs selectively

* Log exceptions from updater async tasks

* Address riperiperi's comments
This commit is contained in:
mageven 2021-02-23 20:49:02 +05:30 committed by GitHub
parent bcbf240d2e
commit fa55d7133a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 17 deletions

View file

@ -1131,7 +1131,10 @@ namespace Ryujinx.Ui
{
if (Updater.CanUpdate(true))
{
_ = Updater.BeginParse(this, true);
Updater.BeginParse(this, true).ContinueWith(task =>
{
Logger.Error?.Print(LogClass.Application, $"Updater Error: {task.Exception}");
}, TaskContinuationOptions.OnlyOnFaulted);
}
}