From bb72ba6d7850d46df3a9959fa2598e7aadf0fd89 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 16 Feb 2017 21:47:36 +0100 Subject: Do not call hid_exit on each device disconnection Signed-off-by: Szczepan Zalega --- device.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device.cc b/device.cc index facdc3e..dcba735 100644 --- a/device.cc +++ b/device.cc @@ -41,7 +41,8 @@ bool Device::disconnect() { hid_close(mp_devhandle); mp_devhandle = nullptr; - hid_exit(); + //FIXME hidexit should not be called if some devices are still active - use static active devices counter + // hid_exit(); return true; } bool Device::connect() { -- cgit v1.2.3