From fed4ba76b5936672a915a756499cfa22ea90071d Mon Sep 17 00:00:00 2001 From: Kazunori Tamura Date: Fri, 28 Jun 2019 10:24:31 +0900 Subject: [PATCH] Fixed nested IEnumerator does not consumed --- Assets/UniRx.Async/EnumeratorAsyncExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/UniRx.Async/EnumeratorAsyncExtensions.cs b/Assets/UniRx.Async/EnumeratorAsyncExtensions.cs index 2d3114a..62b968e 100644 --- a/Assets/UniRx.Async/EnumeratorAsyncExtensions.cs +++ b/Assets/UniRx.Async/EnumeratorAsyncExtensions.cs @@ -191,7 +191,8 @@ namespace UniRx.Async } else if (current is IEnumerator e3) { - while (e3.MoveNext()) + var e4 = ConsumeEnumerator(e3); + while (e4.MoveNext()) { yield return null; }