diff options
author | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-01-04 14:44:38 +0100 |
---|---|---|
committer | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-01-04 14:44:38 +0100 |
commit | a3bcdfe329270479d9ef83eaed0cc664b8b3fb20 (patch) | |
tree | f5f9f435dcbf9557023e3bbb75b2381a5f73b31e | |
parent | 8f85fd728d6b8032ffbcdf3745e2d2154d07988c (diff) | |
download | vdr-plugin-inputdev-a3bcdfe329270479d9ef83eaed0cc664b8b3fb20.tar.gz vdr-plugin-inputdev-a3bcdfe329270479d9ef83eaed0cc664b8b3fb20.tar.bz2 |
fixed shutdown of plugin
made stop() synchronously and made the destructor virtual
-rw-r--r-- | inputdev.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inputdev.cc b/inputdev.cc index c2d11e0..4ddf6e1 100644 --- a/inputdev.cc +++ b/inputdev.cc @@ -195,7 +195,7 @@ public: cInputDevice(cInputDeviceController &controller, cString const &dev_path); - ~cInputDevice(); + virtual ~cInputDevice(); virtual int Compare(cInputDevice const &b) const { return this->dev_t_ - b.dev_t_; @@ -981,4 +981,5 @@ void cInputDeviceController::stop(void) Cancel(-1); this->close(fd_epoll_); fd_epoll_ = -1; + Cancel(5); } |