aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop/connection.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-02-17 09:54:05 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-02-17 09:54:05 -0500
commit9f61d9238ce81444b988137508436255f275051d (patch)
tree960a3af1f5557fb1ab872bfe9359e0607affc96c /src/core/mainloop/connection.c
parent336c45f1a5b30b31cbb76a2622a6e80d755db2b5 (diff)
downloadtor-9f61d9238ce81444b988137508436255f275051d.tar.gz
tor-9f61d9238ce81444b988137508436255f275051d.zip
metrics: Handle the connection finished flushing event
Turns out, we forgot to add the METRICS connection type fo the finished flushing handler. Fixes #40295 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/mainloop/connection.c')
-rw-r--r--src/core/mainloop/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 85cdec6e1e..ada542629a 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -5187,6 +5187,8 @@ connection_finished_flushing(connection_t *conn)
return connection_dir_finished_flushing(TO_DIR_CONN(conn));
case CONN_TYPE_CONTROL:
return connection_control_finished_flushing(TO_CONTROL_CONN(conn));
+ case CONN_TYPE_METRICS:
+ return metrics_connection_finished_flushing(conn);
default:
log_err(LD_BUG,"got unexpected conn type %d.", conn->type);
tor_fragile_assert();