Commit 7bae0c95 authored by Dominik Charousset's avatar Dominik Charousset

Remove false check on stream handshake results

parent 67a705c8
......@@ -59,13 +59,9 @@ auto stream_msg_visitor::operator()(stream_msg::open& x) -> result_type {
if (self_->streams().count(sid_) != 0) {
CAF_LOG_WARNING("received duplicate stream_msg::open");
return fail(sec::stream_init_failed);
}
// Invoke behavior of parent to perform handshake.
auto res = (*bhvr_)(x.msg);
if (!res) {
CAF_LOG_WARNING("actor did not respond to handshake:" << CAF_ARG(x.msg));
return fail(sec::stream_init_failed);
}
// Invoke behavior of parent to perform handshake.
(*bhvr_)(x.msg);
if (self_->streams().count(sid_) == 0) {
CAF_LOG_WARNING("actor did not provide a stream "
"handler after receiving handshake:"
......
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