summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epg2vdr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epg2vdr.c b/epg2vdr.c
index 27f3ee9..cf1d342 100644
--- a/epg2vdr.c
+++ b/epg2vdr.c
@@ -802,7 +802,7 @@ cString cPluginEPG2VDR::SVDRPCommand(const char* cmd, const char* Option, int &R
bool cPluginEPG2VDR::Service(const char* id, void* data)
{
- if (!data || !pluginInitialized)
+ if (!data)
return fail;
tell(4, "Service called with '%s', %d/%d", id,
@@ -832,7 +832,13 @@ bool cPluginEPG2VDR::Service(const char* id, void* data)
return true;
}
- else if (strcmp(id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && Epg2VdrConfig.replaceScheduleMenu)
+ if (!pluginInitialized)
+ {
+ tell(2, "Service called but plugin not redy, retry later");
+ return fail;
+ }
+
+ if (strcmp(id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && Epg2VdrConfig.replaceScheduleMenu)
{
cOsdMenu** menu = (cOsdMenu**)data;