Commit 577cf03e authored by Dominik Charousset's avatar Dominik Charousset

Fix false warning when forwarding messages

parent 9fa0f686
......@@ -172,9 +172,9 @@ class invoke_policy {
return none;
}
if (res->empty()) {
// make sure synchronous requests
// always receive a response
if (mid.is_request() && !mid.is_answered()) {
// make sure synchronous requests always receive a response;
// note: !current_element() means client has forwarded the request
if (self->current_element() && mid.is_request() && !mid.is_answered()) {
CAF_LOG_WARNING("actor with ID " << self->id()
<< " did not reply to a synchronous request message");
auto fhdl = fetch_response_promise(self, hdl);
......
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