mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Merge pull request #4656 from nextcloud/bugfix/cfapi-test
Fix segfault when _transferDataSocket is nullptr.
This commit is contained in:
commit
db1454b0d4
1 changed files with 4 additions and 1 deletions
|
@ -257,7 +257,10 @@ void OCC::HydrationJob::emitFinished(Status status)
|
|||
_transferDataSocket->disconnectFromServer();
|
||||
return;
|
||||
}
|
||||
_transferDataSocket->close();
|
||||
|
||||
if (_transferDataSocket) {
|
||||
_transferDataSocket->close();
|
||||
}
|
||||
|
||||
emit finished(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue