Commit 693f0476 authored by Dominik Charousset's avatar Dominik Charousset

Check for non-null in send_exit

parent 158a3cbd
...@@ -173,6 +173,7 @@ public: ...@@ -173,6 +173,7 @@ public:
/// Sends an exit message to `dest`. /// Sends an exit message to `dest`.
template <class ActorHandle> template <class ActorHandle>
void send_exit(const ActorHandle& dest, error reason) { void send_exit(const ActorHandle& dest, error reason) {
if (dest)
dest->eq_impl(make_message_id(), ctrl(), context(), dest->eq_impl(make_message_id(), ctrl(), context(),
exit_msg{address(), std::move(reason)}); exit_msg{address(), std::move(reason)});
} }
......
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