From d088f1826ab704c9b932765458591c052e939bbc Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 19 Nov 2018 10:32:10 -0500 Subject: remove redundant check --- include/salticidae/conn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h index ea5ccf2..a60cd8f 100644 --- a/include/salticidae/conn.h +++ b/include/salticidae/conn.h @@ -204,7 +204,7 @@ class ConnPool { .get_queue() .reg_handler(this->ec, [conn, client_fd] (MPSCWriteBuffer::queue_t &) { - if (conn->ready_send && conn->self_ref) + if (conn->ready_send) { conn->ev_socket.del(); conn->ev_socket.add(Event::READ | Event::WRITE); -- cgit v1.2.3-70-g09d2