dont check for file uploads if out of hash lookups

This commit is contained in:
Greg DiCristofaro 2023-08-07 10:45:33 -04:00
parent 35efa5a178
commit 5aded98cec

View File

@ -730,9 +730,10 @@ class MalwareScanIngestModule implements FileIngestModule {
// exponential backoff before trying again
long waitMultiplier = ((long) Math.pow(2, retry));
for (int i = 0; i < waitMultiplier; i++) {
if (ingestJobState.getIngestJobContext().fileIngestIsCancelled()) {
if (!ingestJobState.isDoFileLookups() || ingestJobState.getIngestJobContext().fileIngestIsCancelled()) {
return;
}
Thread.sleep(FILE_UPLOAD_RETRY_SLEEP_MILLIS);
}
}