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

Check for non-null in send_exit

parent 158a3cbd
...@@ -173,8 +173,9 @@ public: ...@@ -173,8 +173,9 @@ 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) {
dest->eq_impl(make_message_id(), ctrl(), context(), if (dest)
exit_msg{address(), std::move(reason)}); dest->eq_impl(make_message_id(), ctrl(), context(),
exit_msg{address(), std::move(reason)});
} }
// -- miscellaneous actor operations ----------------------------------------- // -- miscellaneous actor operations -----------------------------------------
......
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