summaryrefslogtreecommitdiff
path: root/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'worker.c')
-rw-r--r--worker.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/worker.c b/worker.c
index 38f1ccd..2c852fb 100644
--- a/worker.c
+++ b/worker.c
@@ -185,7 +185,9 @@ void cTVScraperWorker::CheckRunningTimers(void) {
for (cTimer *timer = Timers.First(); timer; timer = Timers.Next(timer)) {
if (timer->Recording()) {
const cEvent *event = timer->Event();
- scrapType type = GetScrapType(event);
+ if (!event)
+ continue;
+ scrapType type = GetScrapType(event);
if (type == scrapSeries) {
if (!db->SetRecordingSeries((int)event->EventID())) {
if (ConnectScrapers()) {