diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 23:50:16 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 23:50:16 +0000 |
| commit | 510e3589439199cf032b1209f544a6786de9e8e6 (patch) | |
| tree | 02613c7eda958366e878a99187700460923d964d /lib | |
| parent | 9d512025add93946694e16984b1d10df9c990717 (diff) | |
| download | enigma2-510e3589439199cf032b1209f544a6786de9e8e6.tar.gz enigma2-510e3589439199cf032b1209f544a6786de9e8e6.zip | |
return None on quit
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/base/ebase.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index 8563a593..7a57d533 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -333,6 +333,13 @@ int eMainloop::runLoop() PyObject *eMainloop::poll(PyObject *timeout, PyObject *dict) { PyObject *res = 0; + + if (app_quit_now) + { + Py_INCREF(Py_None); + return Py_None; + } + int user_timeout = (timeout == Py_None) ? 0 : PyInt_AsLong(timeout); iterate(user_timeout, &res, dict); |
