diff --git a/src/sock.c b/src/sock.c index 3e2f20887..9eff7f104 100644 --- a/src/sock.c +++ b/src/sock.c @@ -621,6 +621,7 @@ void sock_accept_iocb(int fd) if (!l) return; + BUG_ON(!!master != !!(l->rx.flags & RX_F_MWORKER)); listener_accept(l); }