aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-04 16:16:03 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:42 +0100
commitb16667ba57ef301ef961801676de66cce30d4c52 (patch)
tree94903c6c64bd7294064a854169d4258cbdbe4899 /include
parent832ae0720e7ce2a9666baaf9b86c1c9b9c150697 (diff)
downloadlibnitrokey-b16667ba57ef301ef961801676de66cce30d4c52.tar.gz
libnitrokey-b16667ba57ef301ef961801676de66cce30d4c52.tar.bz2
Disable early device disconnection on communication error
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r--include/device_proto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/device_proto.h b/include/device_proto.h
index ea740b3..cd91952 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -245,8 +245,9 @@ namespace nitrokey {
while (sending_retry_counter-- > 0) {
status = dev->send(&outp);
if (status <= 0){
- Log::instance()("Encountered communication error, disconnecting device", Loglevel::DEBUG_L2);
- dev->disconnect();
+ //FIXME early disconnection not yet working properly
+// Log::instance()("Encountered communication error, disconnecting device", Loglevel::DEBUG_L2);
+// dev->disconnect();
dev->m_counters.sending_error++;
throw DeviceSendingFailure(
std::string("Device error while sending command ") +