From 86560ab273bd245f11de9dcdbd865a58e21ad50e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 4 Feb 2023 12:04:42 -0800 Subject: [PATCH] ircd::m::typing: Fix dead interruption point; move guard into loop. --- matrix/typing.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matrix/typing.cc b/matrix/typing.cc index db5c292cc..e0af45731 100644 --- a/matrix/typing.cc +++ b/matrix/typing.cc @@ -131,7 +131,6 @@ void ircd::m::typing::timeout_check() try { - const ctx::uninterruptible ui; const auto now { ircd::now() @@ -141,9 +140,9 @@ try { if(it->timesout < now) { + const ctx::uninterruptible ui; timeout_timeout(*it); it = typists.erase(it); - ctx::interruption_point(); } else ++it; }