ext/embed/sunscraperinterface.cpp in sunscraper-1.2.0.beta1 vs ext/embed/sunscraperinterface.cpp in sunscraper-1.2.0.pre1

- old
+ new

@@ -80,12 +80,11 @@ void SunscraperInterface::signalSemaphore(unsigned queryId) { QMutexLocker locker(&m_semaphoresMutex); - Q_ASSERT(m_semaphores[queryId] != NULL); - - m_semaphores[queryId]->release(1); + if(m_semaphores.contains(queryId)) + m_semaphores[queryId]->release(1); } unsigned SunscraperInterface::createQuery() { QMutexLocker locker(&m_queryIdMutex);