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(); _transferDataSocket->disconnectFromServer();
return; return;
} }
if (_transferDataSocket) {
_transferDataSocket->close(); _transferDataSocket->close();
}
emit finished(this); emit finished(this);
} }