Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves #475 Terminal window stops updating after resuming from sleep #476

Merged
merged 1 commit into from May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion 0.76_My_PuTTY/timing.c
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
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