Fixed unreasonably high CPU utilization in cases when new connection has
been accepted but polling was not activated yet.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2182 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/PollingScheduler.cxx b/unix/x0vncserver/PollingScheduler.cxx
index c9d8d60..65420ff 100644
--- a/unix/x0vncserver/PollingScheduler.cxx
+++ b/unix/x0vncserver/PollingScheduler.cxx
@@ -55,6 +55,11 @@
m_initialState = true;
}
+bool PollingScheduler::isRunning()
+{
+ return !m_initialState;
+}
+
void PollingScheduler::newPass()
{
TimeMillis timeNow;