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()
|
||||
{
|
||||
file.reset();
|
||||
if (pathInRepo.exists()) {
|
||||
pathInRepo.remove();
|
||||
}
|
||||
|
||||
if (_directory) {
|
||||
_directory->didFailToUpdateFile(fileName, AbstractRepository::REPO_ERROR_SOCKET);
|
||||
_directory->repository()->finishedRequest(this);
|
||||
|
Loading…
Reference in New Issue
Block a user