diff --git a/Core/src/com/basistech/df/cybertriage/autopsy/malwarescan/MalwareScanIngestModule.java b/Core/src/com/basistech/df/cybertriage/autopsy/malwarescan/MalwareScanIngestModule.java index 2d73effa5c4d901b04a397a19f8b3fbd80201ac6..1d5871af3b55c281f3e34b49ec04879e8248e56f 100644 --- a/Core/src/com/basistech/df/cybertriage/autopsy/malwarescan/MalwareScanIngestModule.java +++ b/Core/src/com/basistech/df/cybertriage/autopsy/malwarescan/MalwareScanIngestModule.java @@ -730,9 +730,10 @@ private void longPollForNotFound(IngestJobState ingestJobState) throws Interrupt // 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); } }