aboutsummaryrefslogtreecommitdiff
path: root/src/conn.cpp
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-11-16 23:23:01 -0500
committerDeterminant <ted.sybil@gmail.com>2018-11-16 23:23:01 -0500
commite12e559e85b0c2615fb550cc11560350517efca6 (patch)
tree7ce9f5952d918213e3883032a7bc851e1f32aeb7 /src/conn.cpp
parent20669e2b5e956babf888bca577e39a71d83bae79 (diff)
finish stress test coding
Diffstat (limited to 'src/conn.cpp')
-rw-r--r--src/conn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn.cpp b/src/conn.cpp
index c29dee9..413a582 100644
--- a/src/conn.cpp
+++ b/src/conn.cpp
@@ -301,7 +301,7 @@ void ConnPool::remove_conn(int fd) {
/* inform the upper layer the connection will be destroyed */
conn->on_teardown();
update_conn(conn, false);
- conn->self_ref = nullptr; /* remove the self-cycle */
+ conn->release_self(); /* remove the self-cycle */
::close(conn->fd);
conn->fd = -1;
}