Fixes to HTTP repo tests on Windows.
Large alloca fails, and SGFIle dtor doesn't close the handle, which breaks _wunlink on Windows :(
This commit is contained in:
@@ -749,6 +749,10 @@ HTTPRepository::failure() const
|
||||
code = HTTPRepository::REPO_ERROR_CANCELLED;
|
||||
}
|
||||
|
||||
if (file) {
|
||||
file->close();
|
||||
}
|
||||
|
||||
file.reset();
|
||||
if (pathInRepo.exists()) {
|
||||
pathInRepo.remove();
|
||||
|
||||
Reference in New Issue
Block a user