The m_abortOperation boolean flag is not thread-safe. We should either guard it with a QMutexLocker or, even better, use QThread::isInterruptionRequested() which does everything for us.
Description
Description
Details
Details
Comment Actions
It should be enough to call d->requestInterruption() in Job::doKill() and then replace every occurrence of m_abortOperation with QThread::currentThread()->isInterruptionRequested().