diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-09-20 11:06:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-09-20 11:09:34 +0200 |
commit | c3dcff09369086b862870953f3f3ce5b5b10403f (patch) | |
tree | e1a2f6ed7ae979146f77e1a0c1df0484e42e1c4a /common/rfb | |
parent | 6d0a5a267b5b4c45a97f3e60db7d28785c5ec1ee (diff) | |
download | tigervnc-c3dcff09369086b862870953f3f3ce5b5b10403f.tar.gz tigervnc-c3dcff09369086b862870953f3f3ce5b5b10403f.zip |
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.
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/Timer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/Timer.cxx b/common/rfb/Timer.cxx index fd1a87ae..b9dd2f6d 100644 --- a/common/rfb/Timer.cxx +++ b/common/rfb/Timer.cxx @@ -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) { |