fix(volume): Drop unnecessary lock guard
This commit is contained in:
parent
21d91b0d91
commit
90dd0b2b9a
1 changed files with 21 additions and 24 deletions
|
@ -239,8 +239,6 @@ namespace modules {
|
||||||
if (!m_mixers[mixer::MASTER])
|
if (!m_mixers[mixer::MASTER])
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
std::lock_guard<threading_util::spin_lock> lck(this->update_lock);
|
|
||||||
{
|
|
||||||
vector<mixer_t> mixers{m_mixers[mixer::MASTER]};
|
vector<mixer_t> mixers{m_mixers[mixer::MASTER]};
|
||||||
|
|
||||||
if (m_mixers[mixer::HEADPHONE] && m_headphones)
|
if (m_mixers[mixer::HEADPHONE] && m_headphones)
|
||||||
|
@ -267,7 +265,6 @@ namespace modules {
|
||||||
} catch (const std::exception& err) {
|
} catch (const std::exception& err) {
|
||||||
m_log.err("%s: Failed to handle command (%s)", name(), err.what());
|
m_log.err("%s: Failed to handle command (%s)", name(), err.what());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
m_updated = true;
|
m_updated = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue