mirror of
https://github.com/matrix-construct/construct
synced 2024-05-19 03:13:47 +02:00
ircd:Ⓜ️:typing: Fix dead interruption point; move guard into loop.
This commit is contained in:
parent
32140fedf3
commit
86560ab273
|
@ -131,7 +131,6 @@ void
|
||||||
ircd::m::typing::timeout_check()
|
ircd::m::typing::timeout_check()
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const ctx::uninterruptible ui;
|
|
||||||
const auto now
|
const auto now
|
||||||
{
|
{
|
||||||
ircd::now<system_point>()
|
ircd::now<system_point>()
|
||||||
|
@ -141,9 +140,9 @@ try
|
||||||
{
|
{
|
||||||
if(it->timesout < now)
|
if(it->timesout < now)
|
||||||
{
|
{
|
||||||
|
const ctx::uninterruptible ui;
|
||||||
timeout_timeout(*it);
|
timeout_timeout(*it);
|
||||||
it = typists.erase(it);
|
it = typists.erase(it);
|
||||||
ctx::interruption_point();
|
|
||||||
}
|
}
|
||||||
else ++it;
|
else ++it;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue