Merge pull request #4656 from nextcloud/bugfix/cfapi-test

Fix segfault when _transferDataSocket is nullptr.
This commit is contained in:
Camila 2022-06-21 11:48:36 +02:00 committed by GitHub
commit db1454b0d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,10 @@ void OCC::HydrationJob::emitFinished(Status status)
_transferDataSocket->disconnectFromServer();
return;
}
_transferDataSocket->close();
if (_transferDataSocket) {
_transferDataSocket->close();
}
emit finished(this);
}