aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-16 21:47:36 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:46 +0100
commitbb72ba6d7850d46df3a9959fa2598e7aadf0fd89 (patch)
tree524a92208fb312c4ceb7d5b95dee69eb74a7b6f1 /device.cc
parentc8ac8481134aaf8d04e4e8ece266d43472034157 (diff)
downloadlibnitrokey-bb72ba6d7850d46df3a9959fa2598e7aadf0fd89.tar.gz
libnitrokey-bb72ba6d7850d46df3a9959fa2598e7aadf0fd89.tar.bz2
Do not call hid_exit on each device disconnection
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc3
1 files changed, 2 insertions, 1 deletions
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() {