You need to sign in or sign up before continuing.
Commit f8eb9eb4 authored by Marian Triebe's avatar Marian Triebe

Add missing nullptr check

parent 668298a8
......@@ -324,13 +324,15 @@ namespace network {
CAF_CRITICAL("epoll_ctl() failed");
}
}
auto remove_from_loop_if_needed = [&](int flag, operation flag_op) {
if ((old & flag) && !(e.mask & flag)) {
e.ptr->removed_from_loop(flag_op);
}
};
remove_from_loop_if_needed(input_mask, operation::read);
remove_from_loop_if_needed(output_mask, operation::write);
if (e.ptr) {
auto remove_from_loop_if_needed = [&](int flag, operation flag_op) {
if ((old & flag) && !(e.mask & flag)) {
e.ptr->removed_from_loop(flag_op);
}
};
remove_from_loop_if_needed(input_mask, operation::read);
remove_from_loop_if_needed(output_mask, operation::write);
}
}
#else // CAF_EPOLL_MULTIPLEXER
......
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