platform/bb/rhodes/src/rhomobile/RhodesApplication.java in rhodes-2.3.2 vs platform/bb/rhodes/src/rhomobile/RhodesApplication.java in rhodes-2.4.0.beta.1

- old
+ new

@@ -1421,10 +1421,17 @@ } synchronized(m_mxStackCommands) { if ( m_stackCommands.isEmpty() ) - wait(INTERVAL_INFINITE); + { + int nTimeout = (int)RHODESAPP().getTimer().getNextTimeout(); + waitMs(nTimeout == 0 ? INTERVAL_INFINITE : nTimeout); + + if ( !m_bExit && m_stackCommands.isEmpty() ) + RHODESAPP().getTimer().checkTimers(); + + } } } LOG.INFO( "Exit HttpServerThread main routine..." );