aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-16 23:23:01 -0500
committerDeterminant <[email protected]>2018-11-16 23:23:01 -0500
commite12e559e85b0c2615fb550cc11560350517efca6 (patch)
tree7ce9f5952d918213e3883032a7bc851e1f32aeb7 /src
parent20669e2b5e956babf888bca577e39a71d83bae79 (diff)
finish stress test coding
Diffstat (limited to 'src')
-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;
}