Skip to content

Commit 8806b46

Browse files
authored
Download files when hash does not match
1 parent 02f8074 commit 8806b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/lazerycode/selenium/download/DownloadHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void downloadAndExtractExecutableFiles(DriverContext driverContext, Driv
113113
if (checkFileHash(localZipFile, driverDetails.hash, driverDetails.hashType)) {
114114
fileNeedsToBeDownloaded = false;
115115
} else {
116-
fileNeedsToBeDownloaded = false;
116+
fileNeedsToBeDownloaded = true;
117117
}
118118
}
119119
}
@@ -127,4 +127,4 @@ private void downloadAndExtractExecutableFiles(DriverContext driverContext, Driv
127127
driverDetails.extractedLocation = fileExtractor.extractFileFromArchive(localZipFile, extractedFileLocation, driverContext.getBinaryTypeForContext());
128128
}
129129

130-
}
130+
}

0 commit comments

Comments
 (0)