From: Constantin Kaplinsky Date: Wed, 19 Apr 2006 06:13:06 +0000 (+0000) Subject: Fixed a problem with QueryConnect dialog not counting down seconds, and X-Git-Tag: v0.0.90~384^2~312^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=478f22c50a544a39eab59cbb63615bc3c662cbab;p=tigervnc.git 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 --- 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(); }