0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-24 15:52:34 +01:00

ircd:Ⓜ️:typing: Fix dead interruption point; move guard into loop.

This commit is contained in:
Jason Volk 2023-02-04 12:04:42 -08:00
parent 32140fedf3
commit 86560ab273

View file

@ -131,7 +131,6 @@ void
ircd::m::typing::timeout_check()
try
{
const ctx::uninterruptible ui;
const auto now
{
ircd::now<system_point>()
@ -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;
}