From 7b6f2a4d5dd2fc60b6f50d6f3c8b36ce732f6365 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 19 Mar 2017 12:16:15 +0100 Subject: minor change --- epg2vdr.c | 6 ++++-- epg2vdr.h | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/epg2vdr.c b/epg2vdr.c index cf1d342..5ab3e84 100644 --- a/epg2vdr.c +++ b/epg2vdr.c @@ -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; diff --git a/epg2vdr.h b/epg2vdr.h index 172fdf0..efadeb2 100644 --- a/epg2vdr.h +++ b/epg2vdr.h @@ -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; }; //*************************************************************************** -- cgit v1.2.3