mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-02 09:06:03 +00:00
When we explicitly cancel an operation we shouldn't throw an error.
This commit is contained in:
@@ -244,7 +244,7 @@ void ChatGPTWorker::handleReadyRead()
|
||||
void ChatGPTWorker::handleErrorOccurred(QNetworkReply::NetworkError code)
|
||||
{
|
||||
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
|
||||
if (!reply) {
|
||||
if (!reply || reply->error() == QNetworkReply::OperationCanceledError /*when we call abort on purpose*/) {
|
||||
emit finished();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user