LadderGridHost invalidates '_spec' on connect_vm (not just on settings updates)
This commit is contained in:
1 parent
d090a6d851
commit
00ef27bf8c
1 file changed
+5
@@ -816,6 +816,11 @@ namespace mbts.spark {
|
||||
} else {
|
||||
_vm.OnDisposed += _on_vm_disposed;
|
||||
_prices_updated = 0;
|
||||
// invalidate the contract spec here, as well as in the 'settings update' callback.
|
||||
// While it is assumed that the settings IObservable will always fire at least once (on subscribe),
|
||||
// this serves as a redundancy/fail-safe; it ensures that the vm's security's
|
||||
// contract spec will be used, even if the settings sequence is empty.
|
||||
_invalidate_spec();
|
||||
_price_comparer = Comparer<double>.Create((x, y) => _spec.tick_equals(_normalize_price(x), _normalize_price(y)) ? 0 : y.CompareTo(x));
|
||||
_price_dirty = true;
|
||||
_piq_dirty = true;
|
||||
|
||||
Reference in new issue
Block a user