aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-06-28 01:22:43 -0400
committerDeterminant <ted.sybil@gmail.com>2019-06-28 01:22:43 -0400
commit1d49e46bfaeb7a6bbd38960c0bfd08643aac7c12 (patch)
treecdb820d432950254e1fc6cbefcce00b307cd907b /src
parentb886c6e00ab986f3f22d6e77f77fa8f559532e38 (diff)
...
Diffstat (limited to 'src')
-rw-r--r--src/conn.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conn.cpp b/src/conn.cpp
index 84f08a4..e01690d 100644
--- a/src/conn.cpp
+++ b/src/conn.cpp
@@ -228,8 +228,10 @@ void ConnPool::Conn::_recv_data_tls_handshake(const conn_t &conn, int, int) {
conn->peer_cert = new X509(conn->tls->get_peer_cert());
conn->worker->enable_send_buffer(conn, conn->fd);
auto cpool = conn->cpool;
- cpool->on_setup(conn);
- cpool->update_conn(conn, true);
+ cpool->disp_tcall->async_call([cpool, conn](ThreadCall::Handle &) {
+ cpool->on_setup(conn);
+ cpool->update_conn(conn, true);
+ });
}
else
{