diff options
author | randomdan <randomdan@localhost> | 2013-12-03 13:31:25 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-12-03 13:31:25 +0000 |
commit | 24adc1ca13cc0b3b32542191bb2c368f9a7b9c44 (patch) | |
tree | 6bdb51c1bfa641323a4db49f87a8a149516771c9 /p2pvr/daemon | |
parent | Changes to add downloading program association table and program map (big mes... (diff) | |
download | p2pvr-24adc1ca13cc0b3b32542191bb2c368f9a7b9c44.tar.bz2 p2pvr-24adc1ca13cc0b3b32542191bb2c368f9a7b9c44.tar.xz p2pvr-24adc1ca13cc0b3b32542191bb2c368f9a7b9c44.zip |
Monitor tuner usage and close them if they go idle for a period of time
Diffstat (limited to 'p2pvr/daemon')
-rw-r--r-- | p2pvr/daemon/daemon.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p2pvr/daemon/daemon.cpp b/p2pvr/daemon/daemon.cpp index f3fe1ad..4f55685 100644 --- a/p2pvr/daemon/daemon.cpp +++ b/p2pvr/daemon/daemon.cpp @@ -23,9 +23,10 @@ class P2PvrDaemon : public Daemon { void run() const { + IceUtil::TimerPtr timer = new IceUtil::Timer(); Logger()->messagebf(LOG_INFO, "Creating adapter (%s, %s)", Adapter, Endpoint); auto adapter = ic->createObjectAdapterWithEndpoints(Adapter, Endpoint); - adapter->add(new LocalDevices(), ic->stringToIdentity("Devices")); + adapter->add(new LocalDevices(adapter, timer), ic->stringToIdentity("Devices")); adapter->add(new GlobalDevices(), ic->stringToIdentity("GlobalDevices")); adapter->add(new Maintenance(), ic->stringToIdentity("Maintenance")); adapter->add(new SI(), ic->stringToIdentity("SI")); @@ -39,6 +40,7 @@ class P2PvrDaemon : public Daemon { maint->UpdateEvents(FE_OFDM); //ic->waitForShutdown(); + timer->destroy(); } void shutdown() const |