Browse Source

Fix bad reference in Timer::getRemainingMs()

The reference for "dueTime" wasn't properly updated when this code
was refactored from a static method to a normal object method.
tags/v1.9.90
Pierre Ossman 5 years ago
parent
commit
c3dcff0936
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      common/rfb/Timer.cxx

+ 1
- 1
common/rfb/Timer.cxx View File

@@ -151,7 +151,7 @@ int Timer::getTimeoutMs() {
int Timer::getRemainingMs() {
timeval now;
gettimeofday(&now, 0);
return __rfbmax(0, diffTimeMillis(pending.front()->dueTime, now));
return __rfbmax(0, diffTimeMillis(dueTime, now));
}

bool Timer::isBefore(timeval other) {

Loading…
Cancel
Save