ソースを参照

Add comment to changes

Dávid Karnok 7 年 前
コミット
8dd6b3d7b7
1 ファイル変更3 行追加0 行削除
  1. 3 0
      Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs

+ 3 - 0
Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs

@@ -524,6 +524,9 @@ namespace System.Reactive.Linq.ObservableImpl
 
         public override void OnCompleted()
         {
+            // Calling Dispose() here would clear the queue prematurely.
+            // We only need to dispose the IDisposable of the upstream,
+            // which is done by SafeObserver.Dispose(bool).
             base.Dispose(true);
 
             lock (_gate)