From dd8a0cdc2e5d40fb00307d19a6673b6b9dc17bdc Mon Sep 17 00:00:00 2001 From: jubb Date: Tue, 16 Mar 2021 09:44:55 +1100 Subject: [PATCH] fix: use queue in the retry timer --- .../main/java/org/session/libsession/messaging/jobs/JobQueue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt b/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt index a15ae3fb45..874ce6e0cc 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt @@ -80,7 +80,7 @@ class JobQueue : JobDelegate { Log.i("Jobs", "${job::class.simpleName} failed; scheduling retry (failure count is ${job.failureCount}).") Timer().schedule(delay = retryInterval) { Log.i("Jobs", "Retrying ${job::class.simpleName}.") - job.execute() + queue.offer(job) } } }