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.
diff --git a/common/rfb/Timer.cxx b/common/rfb/Timer.cxx
index fd1a87a..b9dd2f6 100644
--- a/common/rfb/Timer.cxx
+++ b/common/rfb/Timer.cxx
@@ -151,7 +151,7 @@
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) {