projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d51202
)
return None on quit
author
Felix Domke
<tmbinc@elitedvb.net>
Sun, 19 Feb 2006 23:50:16 +0000
(23:50 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sun, 19 Feb 2006 23:50:16 +0000
(23:50 +0000)
lib/base/ebase.cpp
patch
|
blob
|
history
diff --git
a/lib/base/ebase.cpp
b/lib/base/ebase.cpp
index
8563a59
..
7a57d53
100644
(file)
--- 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);