From d54981cb19f923fab8c4aa1adc369076b8a50962 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 19 Jul 2018 16:33:23 -0400 Subject: ... --- include/salticidae/conn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h index 1a47904..f352320 100644 --- a/include/salticidae/conn.h +++ b/include/salticidae/conn.h @@ -174,10 +174,9 @@ class ConnPool { void recv_data(evutil_socket_t, short); void send_data(evutil_socket_t, short); void conn_server(evutil_socket_t, short); - void try_conn(); public: - Conn(): self_ref(this) {} + Conn(): self_ref(this), ready_send(false) {} Conn(const Conn &) = delete; Conn(Conn &&other) = delete; @@ -219,6 +218,7 @@ class ConnPool { ev_connect.clear(); ::close(fd); fd = -1; + self_ref = nullptr; /* remove the self-cycle */ } /** Called when new data is available. */ -- cgit v1.2.3-70-g09d2