Commit f8eb9eb4 authored by Marian Triebe's avatar Marian Triebe

Add missing nullptr check

parent 668298a8
......@@ -324,6 +324,7 @@ namespace network {
CAF_CRITICAL("epoll_ctl() failed");
}
}
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);
......@@ -332,6 +333,7 @@ namespace network {
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