From a3bcdfe329270479d9ef83eaed0cc664b8b3fb20 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 4 Jan 2013 14:44:38 +0100 Subject: fixed shutdown of plugin made stop() synchronously and made the destructor virtual --- inputdev.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3