follow eThread changes: mainly thread_running -> sync, hasStarted()
[enigma2.git] / lib / dvb / epgcache.cpp
index 7c7dd6b2c51ea595256068757b1e10c66ddc2dc7..79012d387e5bcf04fc9de41f800cb849d4da74f0 100644 (file)
@@ -177,12 +177,11 @@ eEPGCache::eEPGCache()
 
 void eEPGCache::timeUpdated()
 {
-       if ( !thread_running() )
+       if (!sync())
        {
                eDebug("[EPGC] time updated.. start EPG Mainloop");
                run();
-       }
-       else
+       } else
                messages.send(Message(Message::timeChanged));
 }
 
@@ -692,6 +691,7 @@ void eEPGCache::gotMessage( const Message &msg )
 
 void eEPGCache::thread()
 {
+       hasStarted();
        nice(4);
        load();
        cleanLoop();