Fix attempt to remove missing files.
This commit is contained in:
parent
b8d07cc460
commit
8009a33b26
@ -631,7 +631,10 @@ HTTPRepository::failure() const
|
|||||||
virtual void onFail()
|
virtual void onFail()
|
||||||
{
|
{
|
||||||
file.reset();
|
file.reset();
|
||||||
pathInRepo.remove();
|
if (pathInRepo.exists()) {
|
||||||
|
pathInRepo.remove();
|
||||||
|
}
|
||||||
|
|
||||||
if (_directory) {
|
if (_directory) {
|
||||||
_directory->didFailToUpdateFile(fileName, AbstractRepository::REPO_ERROR_SOCKET);
|
_directory->didFailToUpdateFile(fileName, AbstractRepository::REPO_ERROR_SOCKET);
|
||||||
_directory->repository()->finishedRequest(this);
|
_directory->repository()->finishedRequest(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user