diff options
author | Determinant <[email protected]> | 2018-07-19 16:33:23 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-19 16:33:23 -0400 |
commit | d54981cb19f923fab8c4aa1adc369076b8a50962 (patch) | |
tree | b2712feb0617bf5a3f1d4c51ec717b7ca05261bb /include | |
parent | b4bf23c07601560d708fbdd7c20aca20b630c983 (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/conn.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |