fix enigma2 all systemresources (high systemload) since previous CI changes
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 27 May 2006 12:15:13 +0000 (12:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 27 May 2006 12:15:13 +0000 (12:15 +0000)
lib/dvb_ci/dvbci.cpp

index b182a36..63df265 100644 (file)
@@ -433,8 +433,6 @@ int eDVBCISlot::send(const unsigned char *data, size_t len)
 
 void eDVBCISlot::data(int what)
 {
-       if (state == stateInvalid)
-               return;
        if(what == eSocketNotifier::Priority) {
                if(state != stateRemoved) {
                        state = stateRemoved;
@@ -452,6 +450,9 @@ void eDVBCISlot::data(int what)
                return;
        }
 
+       if (state == stateInvalid)
+               return;
+
        if(state != stateInserted) {
                eDebug("ci inserted");
                state = stateInserted;