From cbb988d31cceb1035e0ff725cae53a50f6b4b59c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 26 Apr 2020 04:17:39 -0700 Subject: [PATCH] ircd::m::typing: Add timeout context terminator (missing f9df9bfbd). --- matrix/typing.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/matrix/typing.cc b/matrix/typing.cc index 08a72a7e5..59e8344a8 100644 --- a/matrix/typing.cc +++ b/matrix/typing.cc @@ -75,6 +75,15 @@ ircd::m::typing::timeout_context timeout_worker, }; +static const ircd::run::changed +timeout_context_terminate +{ + ircd::run::level::QUIT, [] + { + ircd::m::typing::timeout_context.terminate(); + } +}; + /// Hooks all federation typing edus from remote servers as well as /// the above commit from local clients. This hook rewrites the edu into /// a new event formatted for client /sync and then runs that through eval