SP-23 Dorman tweak. Make this an error instead of cancel.

This commit is contained in:
Eric Harding committed 2019-07-16 16:05:44 -04:00
1 parent f3f34269d3
commit ffd7a9379f
1 file changed
+1 -1
@@ -193,7 +193,7 @@ void DormanAlgo::do_update(const api::orderman::Update& update) {
void DormanAlgo::on_child_change(OrderKey key, const ChildState& state) {
if (key != me->child_id) return;
if (!(state.total_fills.value() >= me->child_state.total_fills.value())) {
algo().cancel("Unexpected fill decrease.");
algo().terminate_error("Unexpected fill decrease.");
return;
}
if (state.status == ChildStatus::CANCELED && !is_paused()) {