diff options
author | Determinant <[email protected]> | 2018-11-16 17:05:28 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2018-11-16 17:05:28 -0500 |
commit | b27216a50bd6566b6fd9203d3acf191005ae5763 (patch) | |
tree | 48dd5cc4cf6660bb9b0aff6820f7fe402ebe2c96 /src | |
parent | b84497791d19d90793c758c7d8e88e57c9d142e6 (diff) |
clean up code
Diffstat (limited to 'src')
-rw-r--r-- | src/conn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn.cpp b/src/conn.cpp index ca13619..5967339 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -138,11 +138,11 @@ void ConnPool::Conn::worker_terminate() { }); } -void ConnPool::Conn::disp_terminate(bool blocking) { +void ConnPool::Conn::disp_terminate() { if (worker && !worker->is_dispatcher()) worker->get_tcall()->call([conn=self()](ThreadCall::Handle &) { conn->stop(); - }, blocking); + }); else stop(); cpool->remove_conn(fd); } |