qho's were reporting their cancelled state twice, which was causing the spreader to cancel it

This commit is contained in:
Taha Afzal committed 2019-06-09 21:16:41 -04:00
1 parent 88908543e1
commit 96cacb8bb9
2 files changed
+24 -7

No files matched your search

@@ -24,6 +24,7 @@ _order_builder(),
_order_manager(),
_services(nullptr),
_reported_state(),
_sent_state(),
_book(),
_state_worker(nullptr),
_start_state_worker(this),
@@ -120,7 +121,7 @@ void QueueHolderOrder::_switch_state(QueueHolderOrderState new_state) {
LOG(OrderMan, Info, "QueueHolderOrder::_switch_state key:{} {}->{}",
key(), s0,_state_int());
}
api::orderman::OrderStatus QueueHolderOrder::status(std::string& message) const{
api::orderman::OrderStatus QueueHolderOrder::_status(std::string& message) const{
QueueHolderOrderState curr_state=
_state_worker==nullptr?QueueHolderOrderState::START:_state();
switch (curr_state){