diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2006-04-19 06:13:06 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2006-04-19 06:13:06 +0000 |
commit | 478f22c50a544a39eab59cbb63615bc3c662cbab (patch) | |
tree | 37f292a4363ca48f18e5803cb16bf9d9a3659291 | |
parent | 494765440afbfde9dc8d6f6d95a21aa21337e013 (diff) | |
download | tigervnc-478f22c50a544a39eab59cbb63615bc3c662cbab.tar.gz tigervnc-478f22c50a544a39eab59cbb63615bc3c662cbab.zip |
Fixed a problem with QueryConnect dialog not counting down seconds, and
also fixed an issue with not calling server's checkTimeouts() function
when there are no client connections.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/merge-with-vnc-4.1.1@542 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | x0vncserver/x0vncserver.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/x0vncserver/x0vncserver.cxx b/x0vncserver/x0vncserver.cxx index ae140fb3..336350d8 100644 --- a/x0vncserver/x0vncserver.cxx +++ b/x0vncserver/x0vncserver.cxx @@ -30,7 +30,7 @@ #include <rfb/VNCServerST.h> #include <rfb/Configuration.h> #include <rfb/SSecurityFactoryStandard.h> - +#include <rfb/Timer.h> #include <network/TcpSocket.h> #include <tx/TXWindow.h> @@ -510,6 +510,10 @@ int main(int argc, char** argv) } } + Timer::checkTimeouts(); + server.checkTimeouts(); + + // Client list could have been changed. server.getSockets(&sockets); // Nothing more to do if there are no client connections. @@ -522,13 +526,7 @@ int main(int argc, char** argv) server.processSocketEvent(*i); } - // Don't poll if the desktop object in not ready. - if (!desktop.isRunning()) - continue; - - server.checkTimeouts(); - - if (sched.goodTimeToPoll()) { + if (desktop.isRunning() && sched.goodTimeToPoll()) { sched.newPass(); desktop.poll(); } |