0
0
Fork 0
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:
Jason Volk 2020-03-03 14:47:07 -08:00
parent 7f2eb104b6
commit c14bef8cd9

View file

@ -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));
}
}