aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/conn.h
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2019-06-12 19:28:47 -0400
committerDeterminant <tederminant@gmail.com>2019-06-12 19:28:47 -0400
commit2fe09084fa633d30cabe2595fd4c4b088971d47c (patch)
treef9282471f0b3b911808e0723a338105ac055ab18 /include/salticidae/conn.h
parente27e529e589ef89fbe010ebf7c5635ec2873f64f (diff)
deduplicate the error callback
Diffstat (limited to 'include/salticidae/conn.h')
-rw-r--r--include/salticidae/conn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index 42e87aa..6fc1288 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -254,6 +254,7 @@ class ConnPool {
void set_dispatcher() { disp_flag = true; }
bool is_dispatcher() const { return disp_flag; }
size_t get_nconn() { return nconn; }
+ void stop_tcall() { tcall.stop(); }
};
/* related to workers */
@@ -361,6 +362,8 @@ class ConnPool {
on_fatal_error(err);
}
});
+ disp_ec.stop();
+ workers[0].stop_tcall();
};
worker_error_cb = [this](const std::exception_ptr err) {