From 2d61deb8b96eed6c92e5d20019aafc07565baea2 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 25 Oct 2011 15:18:53 +0000 Subject: [PATCH] Make sure RFB timers are actually respected by the server implementations. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4736 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/VNCServerST.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 1685b33c..32be8625 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -171,6 +171,9 @@ int VNCServerST::checkTimeouts() { int timeout = 0; std::list::iterator ci, ci_next; + + soonestTimeout(&timeout, Timer::checkTimeouts()); + for (ci=clients.begin();ci!=clients.end();ci=ci_next) { ci_next = ci; ci_next++; soonestTimeout(&timeout, (*ci)->checkIdleTimeout()); -- 2.39.5