Skip to content

Commit

Permalink
Restart the frame timer immediately
Browse files Browse the repository at this point in the history
This marks the timer as started again, before we call out to various
external places that might be confused by the frame timer reporting that
it is stopped.
  • Loading branch information
CendioOssman committed Jun 19, 2024
1 parent 3875912 commit d226d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/rfb/VNCServerST.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,13 @@ void VNCServerST::handleTimeout(Timer* t)
if (comparer->is_empty())
return;

// If this is the first iteration then we need to adjust the timeout
frameTimer.repeat(1000/rfb::Server::frameRate);

writeUpdate();

msc++;
desktop->frameTick(msc);

// If this is the first iteration then we need to adjust the timeout
frameTimer.repeat(1000/rfb::Server::frameRate);
} else if (t == &idleTimer) {
slog.info("MaxIdleTime reached, exiting");
desktop->terminate();
Expand Down

0 comments on commit d226d98

Please sign in to comment.