Skip to content

Commit b14a99a

Browse files
committed
Fixed bug where bad scheduling could produce inconsistent CurrentValues. Fixes #108
1 parent 46e465d commit b14a99a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

NodeNetworkToolkit/ValueNode/ValueNodeOutputViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Reactive.Concurrency;
23
using NodeNetwork.ViewModels;
34
using NodeNetwork.Views;
45
using ReactiveUI;
@@ -38,7 +39,7 @@ public IObservable<T> Value
3839

3940
public ValueNodeOutputViewModel()
4041
{
41-
this.WhenAnyObservable(vm => vm.Value).ToProperty(this, vm => vm.CurrentValue, out _currentValue);
42+
this.WhenAnyObservable(vm => vm.Value).ToProperty(this, vm => vm.CurrentValue, out _currentValue, false, Scheduler.Immediate);
4243
}
4344
}
4445
}

0 commit comments

Comments
 (0)