Resolves #475 Terminal window stops updating after resuming from sleep

This commit is contained in:
Alexander Melkov
2023-03-27 07:18:44 +03:00
parent 333860672b
commit b2b8df282a
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -137,10 +137,12 @@ unsigned long schedule_timer(int ticks, timer_fn_t fn, void *ctx)
}
first = (struct timer *)index234(timers, 0);
if (first == t) {
if (first == t || first != NULL && first->now + 10 * (TICKSPERSEC) < now) {
/*
* This timer is the very first on the list, so we must
* notify the front end.
* Also notify if the first timer has seriously missed its run time,
* most likely due to a system sleep event.
*/
timer_change_notify(first->now);
}
+3 -1
View File
@@ -137,10 +137,12 @@ unsigned long schedule_timer(int ticks, timer_fn_t fn, void *ctx)
}
first = (struct timer *)index234(timers, 0);
if (first == t) {
if (first == t || first != NULL && first->now + 10 * (TICKSPERSEC) < now) {
/*
* This timer is the very first on the list, so we must
* notify the front end.
* Also notify if the first timer has seriously missed its run time,
* most likely due to a system sleep event.
*/
timer_change_notify(first->now);
}