aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-28 22:41:27 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:51 +0100
commit7ab1b59b13477310d0ff631dd9e6686d6ebf4e91 (patch)
treec57db2e00921c1ed3fafccbe326ef1587ad479c0 /device.cc
parent802dd4543b7634f498bd44909461eae6d7975abb (diff)
downloadlibnitrokey-7ab1b59b13477310d0ff631dd9e6686d6ebf4e91.tar.gz
libnitrokey-7ab1b59b13477310d0ff631dd9e6686d6ebf4e91.tar.bz2
Remove checking for mutex being locked
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/device.cc b/device.cc
index 44ec5c3..940a654 100644
--- a/device.cc
+++ b/device.cc
@@ -162,14 +162,10 @@ void Device::show_stats() {
}
void Device::_reconnect() {
- if (mex_dev_com.try_lock()){
- throw std::runtime_error("mutex should be locked before entering this function");
- }
LOG(__FUNCTION__, Loglevel::DEBUG_L2);
++m_counters.low_level_reconnect;
_disconnect();
_connect();
-
}
Device::~Device() {