vene fix notify window while its visible

This commit is contained in:
vrd
2026-07-30 11:54:49 +03:00
committed by Venelin Dechkov
parent e81536b695
commit 491e29fefa
3 changed files with 14 additions and 10 deletions
+5 -5
View File
@@ -105,17 +105,17 @@ extern "C"
time_point<system_clock> now = system_clock::now();
if(has_child && check_exited(child))
{
// Clean up all zombies
while (waitpid(-1, nullptr, WNOHANG) > 0);
has_child = false;
updatestatus();
next_update = now + 5s;
next_update = now + 10s;
}
else if(now > next_update)
{
// Clean up all zombies
while (waitpid(-1, nullptr, WNOHANG) > 0);
updatestatus();
next_update = now + 5s;
next_update = now + 10s;
}
}