Skip to content

Commit 1f403a2

Browse files
committed
fix: prevent spectrogram renderer deadlock bug
1 parent 585806e commit 1f403a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hobbits-plugins/displays/Spectrogram/spectrogramrenderer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,9 @@ bool SpectrogramRenderer::logarithmic() const
575575
void SpectrogramRenderer::setLogarithmic(bool logarithmic)
576576
{
577577
if (!m_logarithmic == logarithmic) {
578-
QMutexLocker lock(&m_mutex);
578+
m_mutex.lock();
579579
m_logarithmic = logarithmic;
580+
m_mutex.unlock();
580581
setDirty();
581582
}
582583
}

0 commit comments

Comments
 (0)