Spark-681 Synthetic creat works ok if heartbeats are ticking.

This commit is contained in:
Eric Harding committed 2018-03-19 16:58:16 -04:00
1 parent d5f90772fe
commit a32fc2ed17
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -269,8 +269,10 @@ DispatcherTimer::~DispatcherTimer() { }
void DispatcherTimer::start()
{
_me->running = true;
_me->schedule();
if (!running()) {
_me->running = true;
_me->schedule();
}
}
void DispatcherTimer::stop()
@@ -115,6 +115,7 @@ struct ExchangeSimApplication::PImpl {
};
ExchangeSimApplication::ExchangeSimApplication() : me(new PImpl()) {
me->timer.start();
me->consumer.on_security(
[this](api::Security const &s, md::MDConsumerHandle h) {
on_new_security(s, h);