SP-214 Missed initialization of EventStream

This commit is contained in:
Eric Harding committed 2019-09-05 12:44:56 -04:00
1 parent 23d4e7f78d
commit 030cf8a938
1 file changed
+4 -2
@@ -11,8 +11,8 @@ std::function<void(OrderOpResult const &)> OrderServices::ignore =
OrderServices::OrderServices(Order &owner)
: _busy(false), _pending_calls(), _owner(&owner), _data(), _parent(nullptr),
_child_update_cb([](auto const &) {}), _book_updates(), _ticker_updates(),
_settlement_updates(), _time_change(), _sessions() {
_child_update_cb([](auto const &) {}), _book_updates(), _ticker_updates(),
_status_updates(), _settlement_updates(), _time_change(), _sessions() {
_last_state_update.key = null_order_key();
}
@@ -29,6 +29,7 @@ void OrderServices::init(OrderServicesData &data) {
_data = &data;
_book_updates.init(*data.md_subs);
_ticker_updates.init(*data.ticker_subs);
_status_updates.init(*data.status_subs);
_settlement_updates.init(*data.settlement_subs);
_time_change.init(*data.time_subs);
if (_sessions.empty())
@@ -70,6 +71,7 @@ void OrderServices::report_state(const api::orderman::OrderState &state) {
unsubscribe_from_child_updates();
_book_updates.unsub_all();
_ticker_updates.unsub_all();
_status_updates.unsub_all();
_settlement_updates.unsub_all();
_time_change.unsub_all();
_create_order_reply.unsub_all();