diff --git a/Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs b/Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs index 5a3a04128..0ec534f1a 100644 --- a/Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs +++ b/Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs @@ -57,22 +57,20 @@ public override IDisposable Schedule(TState state, Func { - _context.PostWithStartComplete(() => + if (!d.IsDisposed) { - if (!d.IsDisposed) - { - d.Disposable = action(this, state); - } - }); - } + d.Disposable = action(this, state); + } + }); return d; }