From e12e559e85b0c2615fb550cc11560350517efca6 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 16 Nov 2018 23:23:01 -0500 Subject: finish stress test coding --- src/conn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2