Support replay without a log_event_loop_interface
We were reading log_event_loop_interface_ when it was nullptr
Change-Id: I8f5dec7ef4421deece037bc5205a05aea98f169b
diff --git a/aos/events/logging/logger.cc b/aos/events/logging/logger.cc
index dd71e50..51dc10c 100644
--- a/aos/events/logging/logger.cc
+++ b/aos/events/logging/logger.cc
@@ -384,8 +384,11 @@
} else {
// Set a timer up immediately after now to die. If we don't do this, then
// the senders waiting on the message we just read will never get called.
- timer_handler_->Setup(monotonic_now + event_loop_factory_->send_delay() +
- std::chrono::nanoseconds(1));
+ if (event_loop_factory_ != nullptr) {
+ timer_handler_->Setup(monotonic_now +
+ event_loop_factory_->send_delay() +
+ std::chrono::nanoseconds(1));
+ }
}
});