diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-16 21:47:36 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:46 +0100 |
commit | bb72ba6d7850d46df3a9959fa2598e7aadf0fd89 (patch) | |
tree | 524a92208fb312c4ceb7d5b95dee69eb74a7b6f1 /device.cc | |
parent | c8ac8481134aaf8d04e4e8ece266d43472034157 (diff) | |
download | libnitrokey-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.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() { |