diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-04 16:16:03 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:42 +0100 |
commit | b16667ba57ef301ef961801676de66cce30d4c52 (patch) | |
tree | 94903c6c64bd7294064a854169d4258cbdbe4899 | |
parent | 832ae0720e7ce2a9666baaf9b86c1c9b9c150697 (diff) | |
download | libnitrokey-b16667ba57ef301ef961801676de66cce30d4c52.tar.gz libnitrokey-b16667ba57ef301ef961801676de66cce30d4c52.tar.bz2 |
Disable early device disconnection on communication error
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | include/device_proto.h | 5 |
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 ") + |