revert to 750ms delay for motor powerup.. 200ms is not really enough
[enigma2.git] / lib / python / connections.cpp
index fd3e2a4bc498517cd33797ae681547f1af8d4db5..3c31baf853f4bf0660bc89375a19ca27b7a6b789 100644 (file)
@@ -2,13 +2,11 @@
 
 PSignal::PSignal()
 {
-       m_list = PyList_New(0);
-       Py_INCREF(m_list);
 }
 
 PSignal::~PSignal()
 {
-       Py_DECREF(m_list);
+       Py_XDECREF(m_list);
 }
 
 void PSignal::callPython(ePyObject tuple)
@@ -24,6 +22,11 @@ void PSignal::callPython(ePyObject tuple)
 
 PyObject *PSignal::get()
 {
+       if (!m_list)
+       {
+               m_list = PyList_New(0);
+               Py_INCREF(m_list);
+       }
        Py_INCREF(m_list);
        return m_list;
 }