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:
parent
32140fedf3
commit
86560ab273
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue