Unverified Commit ffbc6fd9 authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #783

Fix exit reason propagation in monitorable_actor
parents 7d412701 035c124c
......@@ -91,10 +91,10 @@ bool monitorable_actor::cleanup(error&& reason, execution_unit* host) {
if (!set_fail_state)
return false;
CAF_LOG_DEBUG("cleanup" << CAF_ARG(id())
<< CAF_ARG(node()) << CAF_ARG(reason));
<< CAF_ARG(node()) << CAF_ARG(fail_state_));
// send exit messages
for (attachable* i = head.get(); i != nullptr; i = i->next.get())
i->actor_exited(reason, host);
i->actor_exited(fail_state_, host);
// tell printer to purge its state for us if we ever used aout()
if (getf(abstract_actor::has_used_aout_flag)) {
auto pr = home_system().scheduler().printer();
......
......@@ -181,8 +181,6 @@ void basp_broker_state::purge_state(const node_id& nid) {
void basp_broker_state::send_kill_proxy_instance(const node_id& nid,
actor_id aid, error rsn) {
CAF_LOG_TRACE(CAF_ARG(nid) << CAF_ARG(aid) << CAF_ARG(rsn));
if (rsn == none)
rsn = exit_reason::unknown;
auto path = instance.tbl().lookup(nid);
if (!path) {
CAF_LOG_INFO("cannot send exit message for proxy, no route to host:"
......
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