浏览代码

Use IdentitySink.Run where appropriate. (#646)

Daniel C. Weber 7 年之前
父节点
当前提交
5e65a2246b

+ 1 - 1
Rx.NET/Source/src/System.Reactive/Linq/Observable/Case.cs

@@ -53,7 +53,7 @@ namespace System.Reactive.Linq.ObservableImpl
                     return;
                     return;
                 }
                 }
 
 
-                SetUpstream(result.SubscribeSafe(this));
+                base.Run(result);
             }
             }
         }
         }
     }
     }

+ 1 - 1
Rx.NET/Source/src/System.Reactive/Linq/Observable/Defer.cs

@@ -45,7 +45,7 @@ namespace System.Reactive.Linq.ObservableImpl
                     return;
                     return;
                 }
                 }
 
 
-                SetUpstream(result.SubscribeSafe(this));
+                base.Run(result);
             }
             }
         }
         }
     }
     }