Skip to content

Commit d73f293

Browse files
committed
Suggestions by Azhar
1 parent f912483 commit d73f293

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/android/FileTransferBackground.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,12 @@ private void initManager(String options, final CallbackContext callbackContext)
190190
.uploadEventDao()
191191
.getAll();
192192

193-
int acknowledgeScheduler = 0;
193+
int ackDelay = 0;
194194
for (UploadEvent ack : uploadEvents) {
195195
executorService.schedule(() -> {
196196
handleAck(ack.getOutputData());
197-
}, acknowledgeScheduler += 250, TimeUnit.MILLISECONDS);
197+
}, ackDelay, TimeUnit.MILLISECONDS);
198+
ackDelay += 200;
198199
}
199200

200201
// Can't use observeForever anywhere else than the main thread

0 commit comments

Comments
 (0)