Fetch: onCompleted event called twice !!!!

Created on 14 Nov 2019  路  9Comments  路  Source: tonyofrancis/Fetch

This project seems to work before, but for some reason some event callback are getting called twice (worse is 3x) on onCompleted event when downloading. I already remove listener and still persists. Guess I will switch to other downloader such a waste I've been using this for few projects and this bug is a killer. If you guys faced this before and found a solution, I would appreciate any help. Thanks.

override fun onCompleted(download: Download) { fileDownload.onFileDownloaded() plantLog("Ralph Progress - onCompleted " + System.currentTimeMillis()) fetch.removeListener(this) fetch.close() }

bug

Most helpful comment

I was able to replicate this issue. A fix is coming in the next few days.

All 9 comments

Do you have any Ideas about how to debug this bug, make be we can do a collab to fix this issue, cause I think this is the best library available since it's so simple to use #458

Facing the same issue...

I was able to replicate this issue. A fix is coming in the next few days.

@tonyofrancis as you have closed this issue? is it fixed? Because i am getting this issue and i am using version
androidx.tonyodev.fetch2:xfetch2:3.1.4

I think its time to check similar/other libraries. This issue is already closed.

Any workarounds?

New version of Fetch has been released. See readme for new version number.

I don't know why the issue is closed because the bug still exists in the latest version. OnCompleted is being called twice, it's very frustrating.

its still happening in xfetch 3.1.6

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VitorAndrioli picture VitorAndrioli  路  4Comments

jpvs0101 picture jpvs0101  路  6Comments

cepero91 picture cepero91  路  4Comments

burhanaksendir picture burhanaksendir  路  4Comments

jpvs0101 picture jpvs0101  路  5Comments