Skip to content

Commit

Permalink
Resolves cyd01#475 Terminal window stops updating after resuming from…
Browse files Browse the repository at this point in the history
… sleep
  • Loading branch information
yndx-melkov committed Mar 27, 2023
1 parent 3338606 commit b2b8df2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion 0.76_My_PuTTY/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 3 additions & 1 deletion 0.76b_My_PuTTY/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b2b8df2

Please sign in to comment.