From 478f22c50a544a39eab59cbb63615bc3c662cbab Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Wed, 19 Apr 2006 06:13:06 +0000 Subject: [PATCH] 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 --- x0vncserver/x0vncserver.cxx | 14 ++++++-------- 1 file 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 #include #include - +#include #include #include @@ -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(); } -- 2.39.5