Commit 8b8f4720 authored by Dominik Charousset's avatar Dominik Charousset

Fix possible segfault in doorman

parent 104e2f27
......@@ -47,6 +47,12 @@ void doorman::io_failure(execution_unit* ctx, network::operation op) {
}
bool doorman::new_connection(execution_unit* ctx, connection_handle x) {
if (detached())
// we are already disconnected from the broker while the multiplexer
// did not yet remove the socket, this can happen if an I/O event causes
// the broker to call close_all() while the pollset contained
// further activities for the broker
return false;
msg().handle = x;
return invoke_mailbox_element(ctx);
}
......
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