diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-03 15:15:07 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-03 15:15:07 +0000 |
| commit | be9f9b15125b46136fefc5051f5661dc15d59ab7 (patch) | |
| tree | 82150db4086da5f657546e43ff658b992b448704 /lib | |
| parent | 13fecd9a0a17ba5a02d3a9afa7e1e0067d3e1fec (diff) | |
| download | enigma2-be9f9b15125b46136fefc5051f5661dc15d59ab7.tar.gz enigma2-be9f9b15125b46136fefc5051f5661dc15d59ab7.zip | |
small cleanup
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/base/ebase.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index a79b1d4a..61219811 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -147,18 +147,15 @@ int eMainloop::processOneEvent(unsigned int twisted_timeout, PyObject **res, ePy long poll_timeout = -1; /* infinite in case of empty timer list */ - if (!m_timer_list.empty() || twisted_timeout > 0) + if (!m_timer_list.empty()) { - if (!m_timer_list.empty()) - { - /* process all timers which are ready. first remove them out of the list. */ - while (!m_timer_list.empty() && (poll_timeout = timeout_usec( m_timer_list.begin()->getNextActivation() ) ) <= 0 ) - m_timer_list.begin()->activate(); - if (poll_timeout < 0) - poll_timeout = 0; - else /* convert us to ms */ - poll_timeout /= 1000; - } + /* process all timers which are ready. first remove them out of the list. */ + while (!m_timer_list.empty() && (poll_timeout = timeout_usec( m_timer_list.begin()->getNextActivation() ) ) <= 0 ) + m_timer_list.begin()->activate(); + if (poll_timeout < 0) + poll_timeout = 0; + else /* convert us to ms */ + poll_timeout /= 1000; } if ((twisted_timeout > 0) && (poll_timeout > 0) && ((unsigned int)poll_timeout > twisted_timeout)) |
