diff options
-rw-r--r-- | epg2vdr.c | 6 | ||||
-rw-r--r-- | epg2vdr.h | 3 |
2 files changed, 5 insertions, 4 deletions
@@ -834,7 +834,7 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) if (!pluginInitialized) { - tell(2, "Service called but plugin not redy, retry later"); + tell(2, "Service called but plugin not ready, retry later"); return fail; } @@ -858,7 +858,9 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) return true; } - else if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0) + cMutexLock lock(&mutexServiceWithDb); + + if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0) { cEpgTimer_Service_V1* ts = (cEpgTimer_Service_V1*)data; @@ -32,8 +32,6 @@ static const char* MAINMENUENTRY = tr("EPG and Timer Service"); // cPluginEPG2VDR //*************************************************************************** -// cOsdMenu* newWathsOn(); - class cPluginEPG2VDR : public cPlugin { public: @@ -78,6 +76,7 @@ class cPluginEPG2VDR : public cPlugin cDbStatement* selectTimers; cDbStatement* selectEventById; cMutex mutexTimerService; + cMutex mutexServiceWithDb; }; //*************************************************************************** |