Commit d8a28f7d authored by Marian Triebe's avatar Marian Triebe Committed by Dominik Charousset

Fix possible segfault if logging enabled

parent 4b1d29d7
...@@ -75,7 +75,7 @@ void monitorable_actor::cleanup(exit_reason reason, execution_unit* host) { ...@@ -75,7 +75,7 @@ void monitorable_actor::cleanup(exit_reason reason, execution_unit* host) {
exit_reason_ = reason; exit_reason_ = reason;
attachables_head_.swap(head); attachables_head_.swap(head);
} }
CAF_LOG_INFO_IF(node() == host->system().node(), CAF_LOG_INFO_IF(host && host->system().node() == node(),
"cleanup" << CAF_ARG(id()) << CAF_ARG(reason)); "cleanup" << CAF_ARG(id()) << CAF_ARG(reason));
// send exit messages // send exit messages
for (attachable* i = head.get(); i != nullptr; i = i->next.get()) for (attachable* i = head.get(); i != nullptr; i = i->next.get())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment