Fixed a cover bug found by Brian.
This commit is contained in:
1 parent
3e29427679
commit
5303d2fd89
1 file changed
+3
-9
@@ -511,16 +511,10 @@ void AlgoOrder::on_attach_complete(OrderOpResult r, ChildOrder const &child,
|
||||
|
||||
// Store the order
|
||||
auto &child_record = (self->children)[child.key()];
|
||||
child_record.order = child;
|
||||
child_record.is_subscribing = true;
|
||||
|
||||
// This can cause a transition to error
|
||||
on_child_order_update(child.key(), state);
|
||||
|
||||
// If we did not change states (we could have if the attached child
|
||||
// as in an error state), we are ready to go
|
||||
if (self->status == Status::W_ATTACH)
|
||||
transition(Status::WORKING);
|
||||
child_record.order = child;
|
||||
update_child_record(state,&child_record);
|
||||
transition(Status::WORKING);
|
||||
} else {
|
||||
terminate_error(fmt::format(
|
||||
"AlgoOrder order with key {} failed to attach to {}: {}",
|
||||
|
||||
Reference in new issue
Block a user