Utils: Fix bad condition on iterator end

Detected by Coverity.

Amends c1b1842c48.

Change-Id: Ie0233aab33317e286722dec7066d11dfc2a11a06
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Orgad Shaneh
2023-03-06 08:51:18 +02:00
committed by Orgad Shaneh
parent ae86a6a4bc
commit cabba52a89

View File

@@ -49,7 +49,7 @@ static void deleteStreamer(FileStreamHandle handle)
{
QMutexLocker locker(&s_mutex);
auto it = s_fileStreamers.find(handle);
if (it != s_fileStreamers.end())
if (it == s_fileStreamers.end())
return;
if (QThread::currentThread() == it->second->thread()) {
delete it->second;