Browse Source

Swapped updater coroutine waiter for utility function

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
1693d5f919
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Updating/BeatMods/Updater.cs

+ 2
- 2
IPA.Loader/Updating/BeatMods/Updater.cs View File

@ -14,6 +14,7 @@ using IPA.Config;
using IPA.Loader;
using IPA.Loader.Features;
using IPA.Utilities;
using IPA.Utilities.Async;
using Newtonsoft.Json;
using SemVer;
using UnityEngine;
@ -527,8 +528,7 @@ namespace IPA.Updating.BeatMods
ExtractPluginAsync(stream, item, platformFile);
}, taskTokenSource.Token);
while (!(downloadTask.IsCompleted || downloadTask.IsCanceled || downloadTask.IsFaulted))
yield return null; // pause co-routine until task is done
yield return Coroutines.WaitForTask(downloadTask);
if (downloadTask.IsFaulted)
{


Loading…
Cancel
Save