diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2014-12-17 20:26:42 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-06-13 17:29:36 +0100 |
commit | 45c2eba650bb7f9eba43b4f7fcdd3bbccc03747a (patch) | |
tree | be3ac84326db99a484695af53ba70abe848e1b19 /p2pvr/daemon/maintenance.cpp | |
parent | Add tool for creating samples of SI data (diff) | |
download | p2pvr-45c2eba650bb7f9eba43b4f7fcdd3bbccc03747a.tar.bz2 p2pvr-45c2eba650bb7f9eba43b4f7fcdd3bbccc03747a.tar.xz p2pvr-45c2eba650bb7f9eba43b4f7fcdd3bbccc03747a.zip |
Add mock tuner with sample SI data
Add test suite for running maintenance jobs
Diffstat (limited to 'p2pvr/daemon/maintenance.cpp')
-rw-r--r-- | p2pvr/daemon/maintenance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p2pvr/daemon/maintenance.cpp b/p2pvr/daemon/maintenance.cpp index 8e204f7..05c4094 100644 --- a/p2pvr/daemon/maintenance.cpp +++ b/p2pvr/daemon/maintenance.cpp @@ -29,7 +29,9 @@ Maintenance::Maintenance(Ice::ObjectAdapterPtr a, IceUtil::TimerPtr t) : lastUpdateEvents(0), updateRunning(false) { - timer->scheduleRepeated(clientCheck, IceUtil::Time::seconds(5 * 60)); + if (timer) { + timer->scheduleRepeated(clientCheck, IceUtil::Time::seconds(5 * 60)); + } #ifdef NDEBUG ScheduledUpdate(); #endif |