mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
dont check for file uploads if out of hash lookups
This commit is contained in:
parent
35efa5a178
commit
5aded98cec
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user