diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-28 22:41:27 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:51 +0100 |
commit | 7ab1b59b13477310d0ff631dd9e6686d6ebf4e91 (patch) | |
tree | c57db2e00921c1ed3fafccbe326ef1587ad479c0 | |
parent | 802dd4543b7634f498bd44909461eae6d7975abb (diff) | |
download | libnitrokey-7ab1b59b13477310d0ff631dd9e6686d6ebf4e91.tar.gz libnitrokey-7ab1b59b13477310d0ff631dd9e6686d6ebf4e91.tar.bz2 |
Remove checking for mutex being locked
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | device.cc | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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() { |