mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:typing: Fix iteration condition in timeout worker loop.
This commit is contained in:
parent
7f2eb104b6
commit
c14bef8cd9
1 changed files with 3 additions and 2 deletions
|
@ -342,14 +342,15 @@ void
|
|||
__attribute__((noreturn))
|
||||
timeout_worker()
|
||||
{
|
||||
for(;; ctx::sleep(milliseconds(timeout_int)))
|
||||
while(1)
|
||||
{
|
||||
timeout_dock.wait([]
|
||||
{
|
||||
return !typists.empty();
|
||||
});
|
||||
|
||||
timeout_check();
|
||||
if(!timeout_check())
|
||||
ctx::sleep(milliseconds(timeout_int));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue