Skip to content

Commit

Permalink
Fixed bug where bad scheduling could produce inconsistent CurrentValu…
Browse files Browse the repository at this point in the history
…es. Fixes Wouterdek#108
  • Loading branch information
Wouterdek committed May 2, 2021
1 parent 46e465d commit b14a99a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NodeNetworkToolkit/ValueNode/ValueNodeOutputViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Reactive.Concurrency;
using NodeNetwork.ViewModels;
using NodeNetwork.Views;
using ReactiveUI;
Expand Down Expand Up @@ -38,7 +39,7 @@ public IObservable<T> Value

public ValueNodeOutputViewModel()
{
this.WhenAnyObservable(vm => vm.Value).ToProperty(this, vm => vm.CurrentValue, out _currentValue);
this.WhenAnyObservable(vm => vm.Value).ToProperty(this, vm => vm.CurrentValue, out _currentValue, false, Scheduler.Immediate);
}
}
}

0 comments on commit b14a99a

Please sign in to comment.