mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +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();
|
_transferDataSocket->disconnectFromServer();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_transferDataSocket) {
|
||||||
_transferDataSocket->close();
|
_transferDataSocket->close();
|
||||||
|
}
|
||||||
|
|
||||||
emit finished(this);
|
emit finished(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue