From 7ab1b59b13477310d0ff631dd9e6686d6ebf4e91 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 28 Feb 2017 22:41:27 +0100 Subject: Remove checking for mutex being locked Signed-off-by: Szczepan Zalega --- device.cc | 4 ---- 1 file changed, 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() { -- cgit v1.2.3