fix: Clean connection for workaround http2 windows problem (#219)

This commit is contained in:
Petr Mironychev
2025-08-15 10:17:40 +02:00
committed by GitHub
parent aa2edf5954
commit 543c79161d

View File

@ -149,11 +149,20 @@ void RequestHandler::cancelRequestInternal(const QString &id)
QMutexLocker locker(&m_mutex);
if (m_activeRequests.contains(id)) {
QNetworkReply *reply = m_activeRequests[id];
disconnect(reply, nullptr, this, nullptr);
reply->abort();
m_activeRequests.remove(id);
m_accumulatedResponses.remove(reply);
reply->deleteLater();
locker.unlock();
m_manager->clearConnectionCache();
m_manager->clearAccessCache();
emit requestCancelled(id);
}
}