aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/esection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dvb/esection.cpp')
-rw-r--r--lib/dvb/esection.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/dvb/esection.cpp b/lib/dvb/esection.cpp
index ae88d100..4758008a 100644
--- a/lib/dvb/esection.cpp
+++ b/lib/dvb/esection.cpp
@@ -23,8 +23,11 @@ void eGTable::sectionRead(const __u8 *d)
{
if (m_timeout)
m_timeout->stop();
- m_reader->stop();
- m_reader=0;
+ if (m_reader)
+ {
+ m_reader->stop();
+ m_reader=0;
+ }
m_sectionRead_conn=0;
ready = 1;
tableReady(error);
@@ -35,8 +38,11 @@ void eGTable::sectionRead(const __u8 *d)
void eGTable::timeout()
{
eDebug("timeout!");
- m_reader->stop();
- m_reader=0;
+ if (m_reader)
+ {
+ m_reader->stop();
+ m_reader=0;
+ }
m_sectionRead_conn=0;
ready = 1;
error = -1;