fix(volume): Drop unnecessary lock guard

This commit is contained in:
Michael Carlberg 2016-10-16 02:31:07 +02:00
parent 21d91b0d91
commit 90dd0b2b9a

View file

@ -239,8 +239,6 @@ namespace modules {
if (!m_mixers[mixer::MASTER])
return false;
std::lock_guard<threading_util::spin_lock> lck(this->update_lock);
{
vector<mixer_t> mixers{m_mixers[mixer::MASTER]};
if (m_mixers[mixer::HEADPHONE] && m_headphones)
@ -267,7 +265,6 @@ namespace modules {
} catch (const std::exception& err) {
m_log.err("%s: Failed to handle command (%s)", name(), err.what());
}
}
m_updated = true;