|
@ -14,6 +14,7 @@ using IPA.Config; |
|
|
using IPA.Loader; |
|
|
using IPA.Loader; |
|
|
using IPA.Loader.Features; |
|
|
using IPA.Loader.Features; |
|
|
using IPA.Utilities; |
|
|
using IPA.Utilities; |
|
|
|
|
|
using IPA.Utilities.Async; |
|
|
using Newtonsoft.Json; |
|
|
using Newtonsoft.Json; |
|
|
using SemVer; |
|
|
using SemVer; |
|
|
using UnityEngine; |
|
|
using UnityEngine; |
|
@ -527,8 +528,7 @@ namespace IPA.Updating.BeatMods |
|
|
ExtractPluginAsync(stream, item, platformFile); |
|
|
ExtractPluginAsync(stream, item, platformFile); |
|
|
}, taskTokenSource.Token); |
|
|
}, 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) |
|
|
if (downloadTask.IsFaulted) |
|
|
{ |
|
|
{ |
|
|