Skip to content

Commit

Permalink
fix: prevent spectrogram renderer deadlock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-adam committed Oct 22, 2020
1 parent 585806e commit 1f403a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,9 @@ bool SpectrogramRenderer::logarithmic() const
void SpectrogramRenderer::setLogarithmic(bool logarithmic)
{
if (!m_logarithmic == logarithmic) {
QMutexLocker lock(&m_mutex);
m_mutex.lock();
m_logarithmic = logarithmic;
m_mutex.unlock();
setDirty();
}
}
Expand Down

0 comments on commit 1f403a2

Please sign in to comment.