Skip to content

Commit

Permalink
Remove checking for mutex being locked
Browse files Browse the repository at this point in the history
Signed-off-by: Szczepan Zalega <[email protected]>
  • Loading branch information
szszszsz committed Mar 11, 2017
1 parent 802dd45 commit 7ab1b59
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7ab1b59

Please sign in to comment.