Clear reference to API call when download cycle finishes.

This commit is contained in:
akwizgran
2022-06-16 17:29:05 +01:00
parent f05e9dd746
commit b7b253cf24
2 changed files with 36 additions and 10 deletions

View File

@@ -146,10 +146,12 @@ class ContactMailboxDownloadWorker implements MailboxWorker,
if (state == State.DOWNLOAD_CYCLE_1) {
LOG.info("First download cycle finished");
state = State.WAITING_FOR_TOR;
apiCall = null;
addObserver = true;
} else if (state == State.DOWNLOAD_CYCLE_2) {
LOG.info("Second download cycle finished");
state = State.FINISHED;
apiCall = null;
}
}
if (addObserver) {